Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to make a GIF with a transparent background?
#6
(05-25-2017, 09:09 AM)Ofnuts Wrote:
(05-25-2017, 12:54 AM)iZeus Wrote: I currently have a GIF waiting to be used as a logo however the background's white.

How can I make the background transparent while saving the file as GIF

Don't use GIF. For logos, the PNG format does everything GIF does, better.

Then for clean and crisp edges without jaggies or white halo:
  • Layer>Transparency>Add alpha channel (disabled if already done)
  • Start the wand tool, and select the background (keep the standard Threshold). If there are isolated bits (inside of letters such as O), shift-click them to add them to the selection.
  • Select>Grow by 2 pixesl
  • Colors>Color to alpha and remove the white
File>Export as PNG

Hey there, Ofnuts.

Thanks for the reply. I'm a bit new to GIMP and I only learn new things when I need them. (I usually just use GIMP to make a logo or a background).
But I needed the GIF for my centerpiece logo to put in After Effects. I'm not sure if PNG would have made the image loop/move but if it did, kindly reply and explain.
Thanks again for the reply, it's much appreciated!

(05-25-2017, 07:16 AM)rich2005 Wrote: Go to this web page http://fence-post.deviantart.com/art/Col...-153804862 Top of the page is a download button to download a zipped file color_to_alpha_all_layers_by_fence_post-d2jkkla.zip

Unzip that and put the script fp-script-fu-color-alpha-all-layers.scm in your Gimp profile scripts folder C:\Users\your-name\.gimp-2.8\scripts.

Start up Gimp, open the gif file, change the color mode from indexed to RGB Image -> Mode -> RGB Some color operations do not work with color indexed files.

Start the script from Colors -> Color to Alpha All Layers. In the dialogue click in the Color to make transparent and choose black (white is default colour) Ok everything to apply

looks like this: http://i.imgur.com/15xSv6Q.jpg

Gives this: http://i.imgur.com/ePvqK8A.jpg just one layer showing, the swirly nature covers a lot when all layers are showing.

If you are going to do more editing, save your work as a Gimp .xcf file.

When completely finished, export as an animated gif and it will be converted back to color indexed mode.

Hey, Rich2005.

Thanks for the reply, this looks like it would work, I'll give it a go in a bit after I wake up. It's 5:30 AM and I'm about to sleep. Decided to use a regular JPEG as my logo for my videos. 
I save most of my strenuous projects as the .xcf file for later use whether to change the outcome or something else. When I wake up in the afternoon, I'll test your method out and let you know if it worked.

Thanks again for the reply, much appreciated!

(05-25-2017, 07:16 AM)rich2005 Wrote: Go to this web page http://fence-post.deviantart.com/art/Col...-153804862 Top of the page is a download button to download a zipped file color_to_alpha_all_layers_by_fence_post-d2jkkla.zip

Unzip that and put the script fp-script-fu-color-alpha-all-layers.scm in your Gimp profile scripts folder C:\Users\your-name\.gimp-2.8\scripts.

Start up Gimp, open the gif file, change the color mode from indexed to RGB Image -> Mode -> RGB Some color operations do not work with color indexed files.

Start the script from Colors -> Color to Alpha All Layers. In the dialogue click in the Color to make transparent and choose black (white is default colour) Ok everything to apply

looks like this: http://i.imgur.com/15xSv6Q.jpg

Gives this: http://i.imgur.com/ePvqK8A.jpg just one layer showing, the swirly nature covers a lot when all layers are showing.

If you are going to do more editing, save your work as a Gimp .xcf file.

When completely finished, export as an animated gif and it will be converted back to color indexed mode.
Hey again, looking at your IMGUR posts I realized, that unlike mines you hadn't added a layer mask to a circle selection.
If I wanted the image to come out as a circle image, would this still work?

Because I wanted basically this: http://imgur.com/a/ld5eH without the white parts.
Another image I did not a GIF but it's to serve as an example as how I wanted the GIF to turn out as: http://i.imgur.com/llA671b.png
A circle with nothing behind it, except a gif as the image.


Maybe I should Alpha to Selection it AFTER I remove the background?
Reply


Messages In This Thread
RE: How to make a GIF with a transparent background? - by iZeus - 05-25-2017, 09:19 AM

Forum Jump: