GIF with transparent background

October 27, 2007

In this tutorial you will learn an easy way to create a GIF with a transparent background in Photshop. The advantage of this method compared to creating a transparent gif and starting with a transparent background is that you can see what your design will look like against any colored background as you design your image.Your final transparent GIF will look something like the image below. You will not see the white jagged lines around the outside of the image like you sometimes see on transparent GIFs when they are applied to a dark colored background.

Text with a transparent background

Create a new document with the settings below. The image size isn’t important as long as it is bigger than the gif you want to create. You could start with a transparent background instead of a White background, but this method allows you to see your gifs against light and dark backgrounds before saving and it is easy to make the background transparent later.

Settings for a new photoshop file

Use the text tool and select a large font and a blue color. If you do not want to use text you must create a new layer before starting your image. Type out some text and your image should look like the one below.

Text on a white background

Your Layer Palette should look like this. A Text layer above the Background.

Layer Palette

This step is optional. To give the text a little depth. Go to Layer/Layer Style/Bevel and Emboss, and use the default settings - click OK. Your text should look something like the beveled text shown below. You can also use the Add Layer Style button at the bottom of the Layers Palette, it’s second from the left and id looks like fx in CS3, and a dark circle in earlier versions of Photoshop.

To see how your image looks against a variety of background colors, select the background layer in the Layers Palette. Change the background color in the Tools window to a new background color. Press CTRL + Backspace to apply the new background color. Once you’re satisfied that your image will look good against your website’s background color it’s time to make it transparent.

To make the background transparent, click on the Background eyeball in the Layers Palette so the eye disappears.

Layer palette with background layer hidden

Your image should now look like this.

Text with transparent background

To get rid of the extra transparency around the text select Image/Trim, and use the settings below.

Image trim settings

Your image should now look like this after being trimmed, and it’s ready to save.

Text on a trimmed transparent background

Use File/Save for the Web. Use a 2-Up view so you can compare the original image with the one you are saving. At the bottom of the 2-Up view you will see the file size. This will vary as you change some of the settings on the right. On the right make sure GIF is selected. Make sure Transparency is checked. Make sure Matte is set to None. You can adjust the number of colors as needed. For this image 16 colors was used. More colors will increase the file size and the image might not look any different. Click Save, and give it a name. This image will look good over any color background on a web site. If you plan to modify your gif at a later time, then do a Save As, and save it as a PSD file so you will still have your Layers and Layer Style when you re-open it.

Save file settings

The key to making good looking transparent background gifs is to use a colored background first so that you can see what your image will look like when placed against your websites background. Changing the background to transparent is as easy as clicking the eyeball to hide the background layer!

8 Responses to “GIF with transparent background”

  • Thanks for the share

    Posted by Darren Cotton on November 8th, 2007 at 9:44 am

  • Hello, thanks for your time and help with these instructions. I have a question though. I have NO training at all with PHOTOSHOP CS3 and I want to take a picture highlight a face, car, animal, etc then take everything around it (background) away or mk transparent, just like you did with the text above. Wereas I will the be able to put the picture on any other image without seeing a square or color background. It will have a transparent bg and apper the image is the shape of the animal, car, person, etc. Did I explain all that right or do I sound crazy? Thank you for your time and I hope you know what Im taking about and can help.

    Posted by Amber De Luna on January 23rd, 2008 at 1:39 pm

  • Amber,

    You’ll want to find a tutorial about using the photoshop magnetic lasso tool. That will allow you to remove an animal from it’s background. Although that method usually takes quite a lot of patience to get it perfect! Here’s a tutorial that may help you - http://graphicssoft.about.com/od/photoshop/l/blrbps_3aleaf.htm

    Good Luck!

    Posted by admin on January 30th, 2008 at 10:38 pm

  • thanks for the tip on the text, works great for me.

    lou

    Posted by louis belloisy on February 11th, 2008 at 9:20 am

  • THANK YOU! You wouldn’t believe how long I’ve been trying to do this. I can’t believe how easy this was! :)

    Posted by Nichole on March 26th, 2008 at 11:23 am

  • Thanks for the tutorial. It should do the trick.

    Karl

    Posted by Karl on April 25th, 2008 at 9:58 pm

  • Hi there,

    It is so nice to find tutorials on specific things in Photoshop (as well as other topics) on the web. I do not have internet access at home, so I use an Internet Cafe.

    The only way for me to use the tutorial is to save the page of the site and take it home for study and experiment. But this is frustrating as I know that many of the sites when saved and displayed at home either show nothing at all or just the wording with all the illustrations missing.

    Is there a way arond this problem? It would be fine if a PDF or some other download option of the tutorial was provided. For me, it makes the tutorial very difficult to use. It is SO frustrating.

    Malcolm.

    Posted by malcolm on May 22nd, 2008 at 4:37 am

  • This tutorial works well for a .Gif image. But i read up somewhere else that this same principal can be used for different formats of images. is there another tutorial or process to save in another format, Or is it unsupported?

    Posted by 30k on May 29th, 2008 at 12:03 pm

Leave a Reply