Wrong color depth reported for PNG-compressed icons
Posted: 2012-06-16T12:44:08-07:00
Hi,
if I run
$ identify.exe git.ico
git.ico[0] ICO 16x16 16x16+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[1] ICO 24x24 24x24+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[2] ICO 32x32 32x32+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[3] ICO 48x48 48x48+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[4] ICO 64x64 64x64+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.031
git.ico[1] ICO 256x256 256x256+0+0 8-bit DirectClass 48.3KB 0.016u 0:00.031
you can see that for the last image (which is the only one that is PNG compressed) a color depth of "8-bit" is reported, although it should be "32-bit" IMHO. Moreover, I believe the number in the square brackets should also be "5" instead of "1", or?
Get the test icon, which was exported from Gimp 2.8, at http://threekings.tk/tmp/git.ico
if I run
$ identify.exe git.ico
git.ico[0] ICO 16x16 16x16+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[1] ICO 24x24 24x24+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[2] ICO 32x32 32x32+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[3] ICO 48x48 48x48+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.015
git.ico[4] ICO 64x64 64x64+0+0 32-bit DirectClass 48.3KB 0.016u 0:00.031
git.ico[1] ICO 256x256 256x256+0+0 8-bit DirectClass 48.3KB 0.016u 0:00.031
you can see that for the last image (which is the only one that is PNG compressed) a color depth of "8-bit" is reported, although it should be "32-bit" IMHO. Moreover, I believe the number in the square brackets should also be "5" instead of "1", or?
Get the test icon, which was exported from Gimp 2.8, at http://threekings.tk/tmp/git.ico