Search code examples
imagemagickbase64stdoutfavicon

ImageMagick convert .jpg to .ico while using stdout as output channel


I want to use ImageMagick to generate a multiple sizes icon file from a jpeg image. The following command works well:

convert image.jpg -define icon:auto-resize=64,48,32,16 favicon.ico.

Furthermore, I would like to use stdout as output channel so I tried (Cf documentation):

convert image.jpg -define icon:auto-resize=64,48,32,16 ico:fd:1

But it does not produce any result.

What would be the correct command to generate multiple size icon and use stdout as output ?


Solution

  • Just for stdout? Then this would work

    convert image.jpg -define icon:auto-resize=64,48,32,16 ico:-