How to create Windows icon with boolean transparency
Posted: 2012-07-06T03:57:33-07:00
Hi,
I'm using version 6.7.7-2 2012-06-15 Q16 on a Mac and am struggling to rasterize this vectors graphic to a 256x256 icon file with a color palette of 255 colors and 1 color reserved for boolean transparency. So far I'm using
but that results in a black background and rough edges of the logo. Also, some program (like Safari) only display the icon in black / white, so I suspect "-color 255" reduces the image to 2 instead of 255 colors (as there are only 2 distinct color in the image), and although there seems to be a palette, Safari cannot handle it.
I would not mind to get it working by converting to a GIF first (as IM seems to do the boolean transparency magic correctly in that case), however when doing
the GIF image looks fine, but the ICO file again has a black background (although the rough edges of the logo are gone).
Any hints how to get this right?
Note: I've edited my post to more correctly describe the behavior I'm seeing.
I'm using version 6.7.7-2 2012-06-15 Q16 on a Mac and am struggling to rasterize this vectors graphic to a 256x256 icon file with a color palette of 255 colors and 1 color reserved for boolean transparency. So far I'm using
Code: Select all
convert -colorspace sRGB -density 256x256 Git-Icon-1788C.eps -resize 256x256 -quantize transparent -colors 255 -transparent-color \#00000000 git.ico
I would not mind to get it working by converting to a GIF first (as IM seems to do the boolean transparency magic correctly in that case), however when doing
Code: Select all
convert -colorspace sRGB -density 256x256 Git-Icon-1788C.eps -resize 256x256 git.gif
convert git.gif git.ico
Any hints how to get this right?
Note: I've edited my post to more correctly describe the behavior I'm seeing.