Uploaded image for project: 'Commons Imaging'
  1. Commons Imaging
  2. IMAGING-162

BMP files with negative bitmap height are not supported

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.0-alpha1
    • Review Patch
    • Format: BMP

    Description

      The BMP format allows for negative values of the height field in the header. This means that the image lines are stored top-down, not bottom-up as usual (i. e. the first pixel in the pixel array would be in the top left corner of the image, not in the bottom left as usual). However, when a negative-height bitmap is passed, the BmpImageParser attempts to create an array of negative length, and a NegativeArraySizeException ensues.

      Attachments

        1. monochrome-negative-height.bmp
          0.2 kB
          Myroslav Golub

        Activity

          People

            Unassigned Unassigned
            mgolub Myroslav Golub
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: