Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Transparent background for animated gif not staying

Transparent background for animated gif not staying

Transparent background for animated gif not staying

Hi, I just found this forum so this is my first post here.  However, I am not new to forums in general, so I did what I should and performed a search first but didn't find my answer.

I have a small nine frame animation that I wanted to reduce in size, however I seem to be unable to get the background to remain transparent after saving.  I eventually tried resaving the original with no changes (it needs to be noted that I DID select a Transparency Image Color under the Frame Settings tab when saving ) and this did not work either.

I am currently running version 8.369 (I actually have version 9 around here somewhere, but haven't upgraded - now I wonder if I should move up to 10 instead...).

Anyway, any help would be appreciated!

Craig B.

RE: Transparent background for animated gif not staying

have you opened up the GIF and sampled the background? Are the color values exactly the same in each frame?

RE: Transparent background for animated gif not staying

Thanks for replying!  Yes, the color backgrounds are exactly the same for all nine frames.  In the one test I did not change anything, I just opened it up as an "GIF Animation" and then did a "Save As".

The color used for transparency is number 64 in the color palette.  Does that make a difference?  I tried changing the "Background" in "Color Options" ("File Settings" tab during the "Save As") to be "64", but it made no difference.

I've also tried using the "Local Palette" and combinations of the above, so far to no avail.

Any ideas?

Craig B.

RE: Transparent background for animated gif not staying

how about posting a link to the file in question so people can see where the problem may lie?

RE: Transparent background for animated gif not staying

Well, I FINALLY got it to work, but there MUST be a better way!  During a prior test, I swapped the colors #0 and #64 (the original background color), replaced the background color with color number 0 in the palette and then replaced the pixels that were using color number 0 with the new color number 64.  I'm not sure if I could have resolved it using color number 64 as background yet (I'll try that test in a bit).

Here's what I had to do:

When saving the gif, for EACH frame, I had to go the the "Frame Settings" tab and change "Transparency" to the correct "Image color"; AND I had to change the frame delay (which had defaulted to 200ms instead of the 0 is used to be).  I clicked "Apply All" on each frame. I don't know if changing the "Background" (part of "Color options" on the "File Settings" tab) would normally be required, since it defaults to 0 and I had changed the background to color number 0 already.

I think it's interesting (ok, I'll admit that I actually think it's pretty darned annoying) that after I reopened the file to resave, all of the image transparency settings were back to "None".

Anyway, thanks to javabearSTL for taking the time to respond! I do appreciate it!  And, should you know of a better way to get this to work I'd love to know it!

Craig B.

RE: Transparent background for animated gif not staying

well, that's pretty typical for animated GIFs... you can select all the frames at once and define what the transparency color is when you save it so you don't have to manually change each frame. More and more, people are using Flash (and hopefully in the future MNG and SVG) for animation.

RE: Transparent background for animated gif not staying

Just to be thorough, I tried resaving the original which had a background using color number 64 in the palette.  For each frame I changed the "Transparency" to the "Image color" 64 (in the "Frame Settings" tab) and clicked "Apply All".  Interestingly enough, on all the remaining frames, the "Transparency" setting was still "None", but the "Image color" listed was now 64 (backshaded since the "Image color" radio button was not selected.  So close... if only it would have changed the button all the way down!

I should also note that this time the delays between each frame stayed as they were on the original (not sure why it didn't the first time!).

Anyway, this way also worked so I wanted to post this followup so others with the same issue won't need change the background colors!

Craig B.

RE: Transparent background for animated gif not staying

Heh, your reply came in while I was replying!  

I never thought to try selecting more than one frame at a time - that was the shortcut I was looking for!

Thanks again!

Craig B.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close