Menu

#71 Support for icon creation

open
icon (1) ico (1)
5
2024-04-29
2024-04-29
Simon
No

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

Discussion

  • Bob Friesenhahn

    Bob Friesenhahn - 2024-04-29

    I just checked, and sure enough, the ICON module does not support writing. Sorry about that. :-(

     
    • Simon

      Simon - 2024-04-29

      Support for writing the ico format is planned in the future?

       
  • Bob Friesenhahn

    Bob Friesenhahn - 2024-04-29

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB