Hello, I wanted to try to convert a png file into a multidimensional icon via GraphicsMagick but it gives me the following error message:
gm convert: No encode delegate for this image format (ICO).
I used this code. Note that instead of the "auto-resize" parameter I used "target-size" because it is not indicated in the documentation:
gm convert smile.gif -format ICON -define png:target-size=16,32,48,256 -compress zip smile.ico
The string that I used with ImageMagick, perfectly functional, is the following:
magick convert in.jpg -define icon:auto-resize=16,48,256 -compress zip out.ico
I just checked, and sure enough, the ICON module does not support writing. Sorry about that. :-(
Support for writing the ico format is planned in the future?
Of course it should be, but there are many competing demands for the available developer time. Ideally, the software should be able to write any format that it can read, if only to assist with testing.