Page 1 of 1

Converting GIF's, PNG's and JPG to .ICO files

Posted: 2010-07-05T09:29:20-07:00
by ConstantineAI
From: JPG, To: ICO;

/usr/bin/convert -resize x16 -gravity center -crop 16x16+0+0 /chris/images/sites/favicons/temp/1278346974.jpg -transparent white -colors 256 /chris/images/sites/favicons/custom/favicon.ico - This is the output for the command line.

From: GIF's, PNG To: ICO;

/usr/bin/convert -resize x16 -gravity center -crop 16x16+0+0 /chris/images/sites/favicons/temp/1278346974.jpg -flatten -colors 256 /chris/images/sites/favicons/custom/favicon.ico - This is the output for the command line, also i am having issues with transparency. I can't seem to get the right code for it, i have tried -channel alpha -negate, etc

This creates an image and when i apply to the site, it works with Firefox but none of the other browsers. IE, Chrome, Opera and Safari all hate it for some reason, it is a simple favicon.ico file. My conclusion is it must be my code somewhere is breaking. Please help?

Re: Converting GIF's, PNG's and JPG to .ICO files

Posted: 2010-07-22T18:22:56-07:00
by fmw42
If your jpg is cmyk, some browser do not like that. Can you post a link to your input file? What version of IM are you using and on what platform?