Skip to content

Support for 15-bit and 16-bit TGA file formats #559

@HarryLovesCode

Description

@HarryLovesCode

Hello,
I noticed recently that the TGA decoder didn't support 15-bit and 16-bit formats. This led me to ask the question, does this crate handle non-8-bit components? From what I understand, it doesn't (see dynimage.rs).

So, if I were to implement support for TGA file formats that use 5-bits per component, how would I need to represent them? Should we add support in the DynamicImage file I linked, or should they be scaled and cast to u8s?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: new featuresAn operation that does not exist yet, add draft tag if appropriatetopic: formatsTowards better encoding format coverage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions