Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
a file image.ico is produced but does not appear to be a valid Windows icon (Explorer just shows the default icon)
I have a batch file which I wrote some time ago and which used to work perfectly when I had IM 6.5.8 installed. Has anything changed in the icon writing code since then?
Converting bmp to ico and gif to ico still seem to work perfectly.
It may be that we are writing some ancillary chunks that we did not write in older versions. If this fixes the situation, I'll see about omitting those ancillary chunks, as the -strip option does, when writing an ICO.
It also may be that we are writing an indexed PNG while previously we were writing a Truecolor PNG. If the -strip option doesn't help, please try
Before using your command, I used the simple: "convert image.png image.ico" and although the ico file was created well, I noticed that the "dimensions" meta data was not written in the file (according to the file properties in Windows 7 64 bit).
After using your command I got the dimensions meta data written properly in the file.
Neither of those solutions worked for me, unfortunately. I had a more detailed look at the generated icon. IM is creating the icons with PNG format images, which is fine for Vista and later but not compatible with XP and earlier (which I have). I assume that earlier versions used BITMAP format images, which was why it was OK.
For now a work around is to go via GIF (or maybe '32-bit' BMPs) or use an earlier version of IM.
Is there any way of providing a flag to create 'old-style' icons or is it too late for XP now?