Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
    
The chosen answer doesn't really answer the question of how to edit the animated gif in gimp, maybe re-word the question? –  ioSamurai May 22 at 15:40
    
@ioSamurai - I had to manually edit every frame. –  Travis J May 22 at 17:02
    
Got it now, leaving this here for others who end up on this thread from this question in search: CTRL+L to show layers, then edit layer at a time by making it the only 'visible' one, then you go Filters -> Animations -> Optimize Gif... gimp.org/tutorials/Simple_Animations –  ioSamurai May 22 at 20:23
    
@ioSamurai - Perhaps you should convert that into an answer –  Travis J May 22 at 20:30
    
Good point, added :) –  ioSamurai May 22 at 21:28

2 Answers 2

up vote 4 down vote accepted

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.

share|improve this answer
    
I was able to edit and export a gif with transparency using GIMP no problem, the transparency is reflected in the gif properly (you can see anything behind it, no need to color for a specific background). –  ioSamurai May 22 at 21:34
    
Then please share this magic with us. The GIF Format does not support alpha-channel transparency. –  KMSTR May 23 at 5:48

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).

http://www.gimp.org/tutorials/Simple_Animations/

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.