Mobile app version of vmapp.org
Login or Join
Goswami567

: How to edit an animated gif in gimp to include transparency? I have an ajax spinner which unfortunately has a white background in the corners. I want to remove the white and make it transparent

@Goswami567

Posted in: #Animation #Gif #Gimp #HowTo #Transparency

I have an ajax spinner which unfortunately has a white background in the corners. I want to remove the white and make it transparent using GIMP. How can I go about doing that? I tried opening it in GIMP and changing all the pixels to red to target but that changed the whole image when I made red transparent, and also it didn't seem to perpetuate through the sequence.

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Goswami567

3 Comments

Sorted by latest first Latest Oldest Best

 

@Odierno310

Your method didn't work for me, but quite to my surprise, I found another one on my own which worked fine:


go to Layers Window (CTRL + L),
uncheck all layers which wouldn't show missing background (i.e. gray-checkered surface),
open all of them in turn
then every time


go to Layer menu (my Layers Window was not cooperative for that),
open Transparency,
click Color to Alpha,
click OK (you will see the gray-checkered background to appear instead of white or whatever your unwanted background was),

then check the "eyes" in Layers Window,
and voila!, it's done.

10% popularity Vote Up Vote Down


 

@Odierno310

Note: Gimp does support transparency and then when you optimize for animated gif and export it will support transparency in the gif!

To edit a gif in Gimp, first open it.

Then look at the layers window (CTRL+L).

To easily edit an individual frame, uncheck the 'eyeball' for each frame that you wish to hide, then edit the remaining visible frame. (At this point you can edit in your transparency as needed, you may need to change color types if the gif you are opening loads without transparency support, but once it is there it will export properly with animated gif being transparent!)

After your desired edits are completed recheck all eyeballs so all frames are visible and then prepare for export by first optimizing via the filter menu: Filters -> Animation -> Optimize (for GIF)

This will create a new window with your optimized GIF, now just File -> Export and during the save make sure the 'Animated' checkbox is selected (other options such as framerate will also be available here).
www.gimp.org/tutorials/Simple_Animations/

10% popularity Vote Up Vote Down


 

@Rivera951

GIF doesn't have "proper" transparency. You will always have to optimize it towards the intended background. And depending on the image you might have to change every single keyframe.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme