Page 1 of 1
[SE] Converting transparent PNG to GIF loses transparency
Posted: Wed Jan 02, 2008 6:44 pm
by anonymous_user
<-- Moderator's note: This topic has been split off from “XnView Shell extension”. -->
When I use the shell extension to convert a transparent PNG to GIF, it loses the transparency and gets a black background. Any ideas?
Posted: Wed Jan 02, 2008 8:50 pm
by XnTriq
anonymous_user wrote:When I use the shell extension to convert a transparent PNG to GIF, it loses the transparency and gets a black background. Any ideas?
Loading GIF, removing transparency, saving JPG
Posted: Wed Jan 02, 2008 9:26 pm
by anonymous_user
Sorry for mentioning earlier, but I dont want to change the background color. I want it to stay transparent. Last I checked GIF does support transparency.
Posted: Wed Jan 02, 2008 11:40 pm
by XnTriq
Converting truecolor PNG images to GIFs will inevitably result in loss of transparency, because the color depth has to be reduced to 8-bit in the process.
When an 8-bit PNG is converted to GIF format on the other hand, the transparency index of the source image's palette is maintained.
Posted: Sat Jan 05, 2008 1:43 pm
by anonymous_user
Paint.NET lets me save PNGs as GIF without losing transparency. I guess XnView doesnt?

Posted: Sun Jan 06, 2008 5:01 pm
by xnview
anonymous_user wrote:Paint.NET lets me save PNGs as GIF without losing transparency. I guess XnView doesnt?

It's impossible to keep 24bits with alpha in gif format, you don't choose a transparency index?
Posted: Sun Jan 06, 2008 11:15 pm
by XnTriq
Programs like
Photoshop/ImageReady and
Fireworks are capable of reducing an images bit depth from truecolor to indexed color without loss of transparency.
But these are full-fledged image
editors.