GNOME Bugzilla – Bug 135502
gdk-pixbuf (was: eog) doesn't display some bmp files correctly
Last modified: 2010-07-10 04:05:15 UTC
I will attach a bmp file that displays very strangely with transparency.
Created attachment 24806 [details] bmp file that displays with transparency
What is the exact problem? How should the image look like? Screenshot maybe?
Created attachment 24808 [details] expected (gimp-1.3) and gotten (eog) behaviour
Look the same problem with eog-2.5.5 on gnome release 2.5.5 regards
After looking at this some, i think this is a gdk-pixbuf problem, since the thumbnail for nautilus also has the same problem.
Confirmed with CVS HEAD (checked because various BMP fixes went in recently)
This is a depth 32 bmp with compression = none. The bmp loader extracts an alpha channel from the file, although the sources I found (there are only few sources of information regarding depth 32 bmps on the net) http://www.hutgame.com/skill/bmp1.htm, there is no alpha information ever in bmp files. Thus the loader loads a bogus alpha channel, which in this case happens to be transparent.
Fixed by making all pixbufs loaded from bmps non-transparent.