Mobile app version of vmapp.org
Login or Join
Kaufman565

: Trouble with gif export output with transparent background in gimp So I took a gif, and edited out the background for each frame. When I go to filters -> animation -> playback it plays the

@Kaufman565

Posted in: #Gif #Gimp

So I took a gif, and edited out the background for each frame.

When I go to filters -> animation -> playback it plays the gif perfectly fine with a transparent background.
imgur.com/a/AEt5Q
After exporting the gif and opening it up on an image viewer, the background is gone, but instead of it being transparent, it's turned into a white background.
imgur.com/a/G5DJI
I've tried using optimize for gif, but it doesn't change anything. I also have tried exporting the gif as both png and gif format.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Kaufman565

1 Comments

Sorted by latest first Latest Oldest Best

 

@Merenda852

Works for me, different viewers (Firefox, Gwenview), different backgrounds, so Gimp encodes transparent pixels:



However, remember that in a GIF, there is no partial transparency, so you won't get smooth edges (the circles are smooth in the original image, but jagged in the GIF). To get smooth edges, you have to use Filters>Web/Semi-flatten, but this works only for a specific background color.

Edit: You can insert your image into some html that sets a specific background and look at the result by loading the resulting file in your navigator:

<html>
<body>
<!--<div style="background-color: #00ff00 "> -->
<div style="background-image: url(pattern.png)">
<img src=TransparentAnim.gif />
</div>
</body>
</html>


If you see the background behind your image, then you image is good and whatever unexpected background you get is from the image viewer or the web site and not from your image.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme