Skip to content

Suggestion: Bad color palettes with too few bytes #22

@squeek502

Description

@squeek502

(for context, g/pal4.bmp is a "Paletted image with 12 palette colors, and 4 bits/pixel.")

  • g/pal4.bmp exactly but with biClrUsed set to 13, so the color palette is expected to contain 13 entries, but it actually only contains enough bytes for 12 entries
  • g/pal4.bmp exactly but with biClrUsed set to 0, so the color palette is expected to contain 2^4 = 16 entries, but it actually only contains enough bytes for 12 entries

From what I've seen, both Windows and Firefox reject both of the above as invalid.

These would nicely complement q/pal8offs.bmp, which has more bytes in the palette than expected / extra bytes between the palette and the pixel data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions