ico files - detecting bit depth
Posted: 2010-08-01T04:10:08-07:00
I am trying to extract, from several .ico files, only the 32x32 pixel 8-bit element. Is there a way to do this with Imagemagick?
The order and the number of the elements in an icon file can vary.
Can Imagemagick detect the bit depth of an icon element? When I run "Identify" on any icon file, the bit depth for all elements is always reported as 8-bit, even if the .ico file contains 4-bit or 1-bit elements. This seems like a bug. IM Version is 6.6.3 Q16.
Another possible bug - when I run identify *.ico, I get, after the image info, this error message, once for every .ico file identified-
Magick: invalid colormap index `myIconName.ico' @ error/image.c/SyncImage/3951.
Thanks!
The order and the number of the elements in an icon file can vary.
Can Imagemagick detect the bit depth of an icon element? When I run "Identify" on any icon file, the bit depth for all elements is always reported as 8-bit, even if the .ico file contains 4-bit or 1-bit elements. This seems like a bug. IM Version is 6.6.3 Q16.
Another possible bug - when I run identify *.ico, I get, after the image info, this error message, once for every .ico file identified-
Magick: invalid colormap index `myIconName.ico' @ error/image.c/SyncImage/3951.
Thanks!