Skip to content

Height and width should be taken from their absolute values #1

@Crowerade

Description

@Crowerade

Some headers allow height and width to be negative (for instance BITMAPINFOHEADER) and height is often negative as the pixel array is read bottom up.
As a result, when packing the new header, one should:

  • Use the absolute value in order to compute file_size,
  • Interpret them as signed integers for some versions of header

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