Benoit Guigal
Benoit Guigal

Reputation: 858

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 ?

Upvotes: 1

Views: 724

Answers (1)

emcconville
emcconville

Reputation: 24419

Just for stdout? Then this would work

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

Upvotes: 3

Related Questions