Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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