knowledge-kitchen

Animated GIFs (No Slides, Please)

This document has been autogenerated from slides.


a low-color, well-compressed image format that supports both still and animated images

  1. Overview
  2. Inside the file format
  3. A pre-web history
  4. The good, the bad, and the ugly
  5. Why make animated GIFs?
  6. Animating the pre-HTML5 web
  7. Animated GIFs today
  8. How to make an animated GIF
  9. Relevant links
  10. Examples
  11. Conclusions

Overview

What is a GIF?

GIF stands for Graphics Interchange Format.

Inside the file format

Indexed color

Rather than storing a full red-green-blue value for every pixel, a GIF stores a color palette (also called a color table) of up to 256 colors.

LZW compression

GIF files are compressed using the LZW (Lempel-Ziv-Welch) algorithm.

Transparency

GIF supports 1-bit transparency — each pixel is either fully opaque or fully transparent, with no in-between.

Dithering

Because only 256 colors are available, photographic images must be approximated.

Animation and looping

An animated GIF is simply a single file containing multiple frames, each with its own image data and a delay time.

A pre-web history

Born on CompuServe

GIF was introduced by CompuServe in 1987 (the “GIF87a” specification), years before Tim Berners-Lee invented the World Wide Web in 1989–91.

The world of bulletin boards

In the 1980s and early 90s, images circulated across BBSes (Bulletin Board Systems) and online services like CompuServe, AOL, and Prodigy.

The GIF89a revision

In 1989, CompuServe released the GIF89a revision of the format.

The good, the bad, and the ugly

The good

The bad

The ugly

Why make animated GIFs?

Animating the pre-HTML5 web

Before HTML5, the web had no built-in way to play video or rich animation. There was no <video> element and no <audio> element — the early HTML standards simply had no tag for moving pictures.

The contenders

The trouble with plug-ins

These plug-in technologies all shared the same fundamental weaknesses.

The iPhone changes everything

When Apple launched the iPhone in 2007, its mobile Safari browser supported the emerging HTML5 standard — including, soon after, the new <video> element — but it never supported Flash.

HTML5 wins

The <video> and <audio> elements let browsers play media natively, with no plug-in at all.

Animated GIFs today

The reaction GIF

Far from dying out, the animated GIF has become a core part of how people communicate in messaging and social apps.

Built into the messengers

Most major messaging platforms now include a GIF picker built right into the app.

A technical footnote

Ironically, many “GIFs” you send in modern apps are no longer GIF files at all.

How to make an animated GIF

Manually

Automatically creating frames from layers

Adding a tween

A tween is an automatic transition between two frames. You can tween a layer’s position, opacity, and effects.

Reverse the order of frames

Convert video to animated GIF

Save as GIF

Photoshop allows you to export files with compression using their Export As options.

No Photoshop? No problem

You do not need to own Photoshop to create animated GIFs — a number of free, browser-based image editors support the format.

Animated GIFs as a design trend

Tutorials in Photoshop

Tutorials in Photoshop Elements

Examples

Some old-school examples

Conclusions

We have now seen the strengths and weaknesses of the GIF format, and how animated GIFs can be created.