[Magick-bugs] Bug in Windows Icon generation
Peter Hull
peterhull90 at gmail.com
Fri Apr 20 04:17:10 PDT 2007
I'm trying to add multiple images to a Windows .ico file. The format
allows for multiple images, Windows then picks the best size/colour
depth for display.
I'm only an ImageMagick beginner, but, as I understand it,
convert i1.bmp i2.bmp test.ico
should create an icon containing the two images. However, what I get
is two separate files, test-0.ico and test-1.ico.
I can take a pre-existing icon and extract its sub-images or examine
it with identify, so the reading of icons seems fine, just the
writing.
Am I doing something wrong or is this a bug? I had a quick look at the
code in coders/icon.c, and the bit where it appears to want to count
the number of sub-images seems a little suspect, but I haven't had
time to understand it fully.
This is with ImageMagick-6.3.3-8-Q16-windows-dll.exe, and also from
the same (I think) version of the source compiled on OS X
Thanks for your help,
Peter
More information about the Magick-bugs
mailing list