Png to gif with transparency

I have a png image with some transparency. I would like to convert it to a gif image. I tried using imagemagik with help convert myimage.png myimage.gifbut transparency is not respected.

Any solution using Linux commands? thank

+5
source share
1 answer

What you do should work out of the box.

However, there is an important limitation of GIF as a format (not related to imagemagick). It does not support translucency (alpha channel). GIF transparency on / off (boolean).

Documents claim that the default behavior is to make pixels with (α <50%) completely transparent.

. , ( ImageMagick):

 convert a.png -channel A -threshold 15%   a_no_shadow.gif

.: http://www.imagemagick.org/Usage/formats/#gif

+7

All Articles