Mobile app version of vmapp.org
Login or Join
Steve758

: GIF with transparency output not as expected in GIMP I have been trying to create a GIF using a sequence of PNGs within GIMP An example PNG from the sequence shows the correct transparency

@Steve758

Posted in: #Animation #Gif #Gimp #Transparency

I have been trying to create a GIF using a sequence of PNGs within GIMP

An example PNG from the sequence shows the correct transparency I want to be shown in the GIF,

But when I process the PNG sequences in GIMP and create the GIF image, I get the following result:



What am I doing wrong here?

I have set the settings to create the animation frame by frame, additionaly making sure that the RGBA setting was selected.

Can anyone show me a solution to this problem?

Thanks, Chris

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Steve758

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL875

You are faced with a limitation of the GIF color specification. Other than PNG GIF does not support semi-transparent colours.

The origingal PNG however is made up with semi-transparent colors as can be seen when looking at the original in checkerboard mode:



After we had exported this RGB file with alpha channel as GIF we will have reduced the colors to 256 or less but we will only have one single transparent color (white) represented in the resulting GIF:



We therefore have to simulate semi-transparency by dithering the image before we are able to export it as GIF. This is done with the tool Image - Mode - Indexed...



Select Enable dithering of transparency with any method (here Floyd-Steinberg (reduced color bleeding)). After that we can see the dithered image:



Which we can then export as GIF:



For deeper insights into transparency handling for GIF animations the following tutorial is highly recommended:


Image Magick Animation Optimization: Semi-Transparency Handling

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme