Skip to content

Does not handle valid Alpha only DDS format #8178

@LoopyAshy

Description

@LoopyAshy

ImageMagick version

7.1.1-47

Operating system

Windows

Operating system, version and so on

Windows 11

Description

ImageMagick does not yet support a completely valid variant of DDS (albeit extremely rarely used) where the data is exclusively 8 bits large composed only of Alpha pixels and presumes every other byte is irrelevant and free to be set to anything the user desires (usually at the program level) as such it is ok to have it default to 0xff or 0x00 for simplicity sake for each pixel or maybe have a argument to override it if it does not exist already.

As I said prior: it is extremely rare but does have a place for rare uses such as: old raster fonts.

I do wish to bring to attention that DDS by default supports literally any combination of pixel layouts: RGBA, A, RA, GA, ARGB, BRG, etc. this is on purpose albeit rarely if ever used due to it being unusual, but allows optimizations such as this ALPHA only format.

Example file

Font.zip

Steps to Reproduce

Try to convert/read a valid alpha only DDS file.

Images

Expected output

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions