Graphics, Part IV: More About GIFs


Interlaced Images

You may have noticed the Interlaced choice in the Export Preview window near Transparency. Interlaced GIFs display one part at a time, much like the opening of a venetian blind. This helps hold user interest while they wait for a slow download.

It's hard to see the effect when the page loads quickly. So try this link to the U. of Arizona and watch how the beetle displays.

Try it out yourself!

  1. Save the class photo JPEG to the Desktop as tcf389.jpg.
  2. Open it in Fireworks.
  3. Go to Export Preview and change it to a GIF with the Interlaced box (lower left corner) checked. Export it to the Desktop as tcf389.gif.
  4. Use Dreamweaver to create a Web page for it. Insert tcf389.gif into it and save it to the Desktop as interlace.htm.
  5. Use WS_FTP to put interlace.htm (and tcf389.gif) in your bama.ua.edu account.
  6. Use a browser to access interlace.htm on bama.ua.edu. Can you see the interlacing effect? Or does the image load too quickly?
  7. Show it to your instructor.

Transparent Images

Transparent GIFs in Fireworks: Step-By-Step

  1. Save this image of Bart Simpson on the Desktop as bartpurple.gif.
  2. Start Fireworks.
  3. Load bartpurple.gif into it.
  4. Go to the File Menu and select Export Preview (this also works in 2-Up and 4-Up, if you prefer).

  5. Note the Transparency setting near the lower left corner. In the illustration above, it's set to No Transparency. Clicking on that box gives you two choices:
    1. Index transparency--works on GIFs. Choose this.
    2. Alpha transparency--does not work on GIFs.
  6. You may now pick which color in your image will be transparent by using the Transparency Eyedropper Tool . Once you activate it by clicking on it, you may then click on a color in the image itself. Whatever color is clicked on will become transparent. Click anywhere on the purple behind Bart.
    (A palette showing all the colors in the image is displayed, too. You can also use the eyedropper to select from there.)
  7. The purple part should turn into a checkerboard pattern. This designates "transparency."
  8. Select "Export" and export it to the Desktop as barttrans01.gif.
  9. Then do two more bart.gif's--with two different color transparencies. Save them on the Desktop with different names.
  10. Create a test Web page in Dreamweaver. Save it as transtest.htm on the Desktop.
  11. Set the background color to something distinctive, then insert all your bart.gif's into it.
  12. Load it in your browser, and show it to your instructor.


The Anti-Aliasing Issue

Try it yourself:

  1. Use Fireworks to make the anti-aliased image, PSantialias.gif, into a transparent GIF;
  2. Use Dreamweaver to create a new Web page with a colored background and save it to the desktop as transtest.htm.
  3. Insert the anti-aliased PSantialias.gif into it.
  4. Next, convert PSantialias.gif into an image with hard edges in Fireworks using the technique described above.
  5. Save it as PSalias.gif.
  6. Put it in the same Web page. Can you see the difference? Show it to your instructor.

Transparent GIFs from a Photographic Original

Using a photograph for your transparent GIF can be tricky because of the ill-defined edges in a photograph.

  1. Begin by scanning an image into Fireworks. E.g., this dorky one of me sitting on the World's Ugliest Couch.
  2. Select the Lasso Tool from the Fireworks toolbox. What do all those tool icons mean? Find the answers in this visual guide to the Toolbox.
  3. So, trace (drag the cursor) an outline of the part of the image you wish to use.
  4. My head is now selected (as the marching ants indicate), but actually I want to select everything but my head.
  5. To do so, go to the Edit Menu and choose Select Inverse. This selects the inverse of what had been originally selected. Note how the marching ants change location!
  6. I now turn everything but my head a distinct purple (a color I know doesn't exist in the image naturally):
    1. Select the Paintbucket tool.
    2. Set the Paintbucket Tool color to purple:
    3. To fill a selection with the Paintbucket (rather than similar colors as the Paintbucket Tool normally does), check Fill Selection Only on the Paintbucket Tool Options panel:

      And, of course, make sure Edge is set to Hard!
    4. Click on the selected part of the image (that is, outside my head). My head now floats in a field of purple:

  7. Turn off the selection by going to the Edit menu and choosing Deselect (or using the shortcut of CTL-D).
  8. Export the image as a GIF file and turn the purple portion transparent (as explained above). Et voila! A floating Jeremy head!


Bibliography

  1. Lynda Weinman, Designing Web Graphics .3 (Indianapolis, IN: 1999).
  2. Jennifer Niederst, Web Design in a Nutshell (Cambridge, MA: O'Reilley, 1999).

Last revised: May 29, 2000 11:19 AM
Comments: jbutler@ua.edu