Unable to write ICO files with transparency

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: helmut, XnTriq, xnview

Post Reply
eyebex
Posts: 32
Joined: Thu Jul 29, 2004 8:11 pm

Unable to write ICO files with transparency

Post by eyebex »

Hi,

I can't get the output of ICO files with a transparent background color to work correctly with NConvert 0.61 on Mac OS X. I'm using this vector graphic for input. The command line I'm using is

Code: Select all

nconvert -out ico -o nconvert-git.ico -transparent 0 -colors 256 -resize 256 256 Git-Icon-1788C.eps
which gives me a white opaque background. However, if I just change the output format to PNG like this

Code: Select all

nconvert -out png -o nconvert-git.png -transparent 0 -colors 256 -resize 256 256 Git-Icon-1788C.eps
The output has palette-index based transparency. Any way to get this working for ICO output, too?

Thanks!
eyebex
Posts: 32
Joined: Thu Jul 29, 2004 8:11 pm

Re: Unable to write ICO files with transparency

Post by eyebex »

Ah, it seems the ICO file in fact has a transparent background, at least Gimp is showing it. But XnView MP does not show the transparent background for the ICO file, although it does for the PNG file, which is why I thought there would be no transparency.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Unable to write ICO files with transparency

Post by xnview »

eyebex wrote: The output has palette-index based transparency. Any way to get this working for ICO output, too?
Currently, you can only save ico 32bits to have transparency
Pierre.
eyebex
Posts: 32
Joined: Thu Jul 29, 2004 8:11 pm

Re: Unable to write ICO files with transparency

Post by eyebex »

Thanks, are there plans to change that any time soon?
Post Reply