BMP bug in ImageIO?

  • Hello,

    I am not sure where should I post, but I think, I have found a bug in
    ImageIO framework.

    I am using this framework to save images. Noticed (using 'file'
    command in terminal) that BMP images, created with ImageIO has
    negative height (PC bitmap data, Windows 3.x format, 1200 x -900 x
    24). Such images causes open problems on Windows.
    The same happens when saving images in BMP format with Apple Preview
    (I am sure it uses the same ImageIO).

    Is there any workaround for this? This is known?

    Any help is appreciate.

    Rimas
  • A negative height in the BMP header means that the scanlines are
    stored from top-to-bottom (rather than bottom-to-top, which is what
    you get if you put a positive height). I don't believe that this is a
    bug.

    On Jan 11, 2008, at 8:36 AM, Sean McBride wrote:

    > On 1/11/08 10:43 AM, Rimas said:
    >
    >> I am not sure where should I post, but I think, I have found a bug in
    >> ImageIO framework.
    >>
    >> I am using this framework to save images. Noticed (using 'file'
    >> command in terminal) that BMP images, created with ImageIO has
    >> negative height (PC bitmap data, Windows 3.x format, 1200 x -900 x
    >> 24). Such images causes open problems on Windows.
    >> The same happens when saving images in BMP format with Apple Preview
    >> (I am sure it uses the same ImageIO).
    >
    > File a bug with a test case at
    > <https://bugreport.apple.com>
    >
    > --
  • On 1/11/08 10:43 AM, Rimas said:

    > I am not sure where should I post, but I think, I have found a bug in
    > ImageIO framework.
    >
    > I am using this framework to save images. Noticed (using 'file'
    > command in terminal) that BMP images, created with ImageIO has
    > negative height (PC bitmap data, Windows 3.x format, 1200 x -900 x
    > 24). Such images causes open problems on Windows.
    > The same happens when saving images in BMP format with Apple Preview
    > (I am sure it uses the same ImageIO).

    File a bug with a test case at
    <https://bugreport.apple.com>

    --
    ____________________________________________________________
    Sean McBride, B. Eng                <sean...>
    Rogue Research                        www.rogue-research.com
    Mac Software Developer              Montréal, Québec, Canada
previous month january 2008 next month
MTWTFSS
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Go to today