Transparent background sometimes appears black
Posted: 2009-02-22T22:57:28-07:00
I'm using ImageMagick to convert .ico files into transparent .gif files. I'll download a favicon, http://twitter.com/favicon.ico, for example, and convert it to a .gif using the following:
In Windows, this works just great. On Linux, sometimes the icons have a black background instead of transparent.
After converting this -- the resulting .gif is this:
http://www.quantcast.com/favicon.ico -- transparent background in both Windows and Linux
http://twitter.com/favicon.ico -- transparent background in Windows, black background in Linux
Anybody know the cure?
Thanks!
Code: Select all
convert -resize 32x32! -sharpen 10 favicon.ico[0] favicon.gif
After converting this -- the resulting .gif is this:
http://www.quantcast.com/favicon.ico -- transparent background in both Windows and Linux
http://twitter.com/favicon.ico -- transparent background in Windows, black background in Linux
Anybody know the cure?
Thanks!