fmw42 wrote:I know nothing about ico files, but both your examples show transparent backgrounds on my Mac OSX using Safari for the browser.
Icons display properly in the browser as being transparent. The problem is when I convert them to a .gif using ImageMagick.
I'm on Ubuntu and have compiled ImageMagick from source. (The default package was somewhat outdated). So, now I'm at version 6.4.9-8.. and I still have this problem.
I'm using this command:
convert -resize 32x32! -sharpen 10 favicon.ico[0] favicon.gif
To test this, download this .ico file:
http://twitter.com/favicon.ico
..and try to convert it using the command above. I end up with a black backgrounded .gif instead of transparent one. Does this happen for you?
How do I fix this? Am I using "convert" improperly?
Again, just to clarify, .ico files have transparency. When I use ImageMagick to convert a .ico to a .gif,
sometimes the .gif ends up having a black background instead of transparent. This happens about half the time when I use ImageMagick on Linux to convert, but *not* when I use Windows ImageMagick to convert.