I am having a problem where I seem to lose the transparency of *some* icon files that I am working with (but not all transparent ico files). An example is:
http://files.adbrite.com/mb/images/favicon.ico
If I try to resize (`convert ab.ico -resize 32x32! ab2.ico`), the transparent background turns black.
But if I perform the same operation for a different icon, it works. A working example is:
http://www.shutterfly.com/favicon.ico
I am currently using ImageMagick 6.3.7.
Thanks in advance.
transparency of some ico files
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: transparency of some ico files
You could try enabling the alpha channel. So for example try
convert ab.ico -channel RGBA -resize 32x32! ab2.ico
convert ab.ico -channel RGBA -resize 32x32! ab2.ico
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: transparency of some ico files
check convert ab.ico -verbose info: to see if there is anything strange about the alpha channel or the underlying image colors. (Post an example image of one that does not work.)
you might also try adding -matte or -alpha on
convert ab.ico -alpha on -channel RGBA -resize 32x32! ab2.ico
you might also try adding -matte or -alpha on
convert ab.ico -alpha on -channel RGBA -resize 32x32! ab2.ico
Re: transparency of some ico files
Thanks fmw42,
convert ab.ico -alpha on -channel RGBA -resize 32x32! ab2.ico
worked perfectly!
convert ab.ico -alpha on -channel RGBA -resize 32x32! ab2.ico
worked perfectly!