GNOME Bugzilla – Bug 307634
Windows .ico file misloaded
Last modified: 2008-01-15 12:55:52 UTC
Version details: 2.2.7 Win32 build Distribution/Version: Windows XP The attached .ico file, when you load it into the Gimp, shows a black rectangle as the top half of the image with some blue stuff below. This is not correct; when you view the file in most Windows applications (for example the image preview in Windows Explorer, or Microsoft Visual Studio) the image is a blue thing with no black rectangle at the top. So this is a bug in the .ico input converter. Hmm, not sure where to attach the file, but see <http://membled.com/work/bugs/gimp/misdisplayed.ico>. You may note that its display in Mozilla Firefox is different to that in the Gimp - hopefully no need to start up Windows to verify this bug.
Created attachment 47759 [details] Icon misloaded by the Gimp This should be a blue icon on a transparent background (and displays as such in most programs). But the Gimp misloads it and blacks out the top half of the image.
The image loads properly in Linux using the 2.2.6 and CVS versions of GIMP.
Hmm, I found the misloading with both 2.2.2 and 2.2.7 on Windows.
Loads fine for me (on Linux).
*** This bug has been marked as a duplicate of 172503 ***
The icon is recognized as a 8 bpp icon (and, according ot identify, is a image with a rgba palette). The code in icoload.c seems to assign either A=0 or A=255 in this case.