GNOME Bugzilla – Bug 674398
Incorrect open BMP-file
Last modified: 2013-10-13 07:04:05 UTC
The file "Gimp-Open-Bug.bmp" in Windows and Fax Viewer looks OK, but GIMP opens only parts of image. Nikolay Keskinov
http://www.otel.net/~ameka/pub/gimp/Gimp-Open-Bug.bmp
The BMP file has an alpha channel, and the parts that are not shown are fully transparent.
Since this file uses a BITMAPINFOHEADER, 32 bpp, and BI_RGB as the format, according to wikipedia the image actually doesn't have an alpha channel - the format should be X8 B8 G8 R8, (last byte just thrown out). It looks like this is what Firefox and gpicview assume. What complicates this is some programs (including the gimp, if color profile information is disabled in the export dialog) store the alpha channel of images in the extra (supposedly unused) byte of a BITMAPINFOHEADER image. There's no good reason to make a 32 bpp image instead of a 24 bpp if the last byte never matters, so the spec isn't really that smart here. This was fixed with headers BITMAPV3INFOHEADER and above, where the bit masks make things clear. It's not really clear what should happen when a bitmap like this is opened. It might be best to give the user a choice as to whether to ignore the alpha channel or not.
Does this still happen with 2.8.0?
Yes, it happens with both 2.8 and also master. Constructing a GEGL graph with only a gegl:load does load this file without the alpha chanel, although that's just falling back to gegl:magick-load.
Resolving this as a duplicate of bug #573090. *** This bug has been marked as a duplicate of bug 573090 ***
Thank you for correction in version gimp-2.8.6 I understand that the wrong is not in GIMP, but I can not change my BMP generator (It is EasyBuilder8000 terminal emulator from www.weintek.com) THANK YOU VERY MUCH ! Nikolay Keskinov