How to create your own animated GIFs the easy way

You can’t go too far online these days without coming across an animated GIF, either as a quick flashcard-style animation or a short, soundless, looping video. No, that sentence was not written in 1999. Animated GIFs—simple animations made by stringing several still shots together—went quietly out of fashion over the last 12 years in favor of full-on streaming HD digital video and fancy Flash productions.

But now, unbidden and somewhat enigmatically, they’re back. Tumblr in particular is jam-packed with these succinct visual snippets, which are often clever and comical. Those that strike just the right combination tend to go viral, and can end up being viewed by millions of people the world over. Not bad for a file format that is over two decades old.

Graphics Interchange what?

GIF—short for Graphics Interchange Format—was developed in 1987 by CompuServe, and a perpetual argument has raged about how to pronounce the one-syllable acronym, an argument I will not even attempt to negotiate. Suffice it to say that about as many people seem to be proponents of the hard-G pronunciation as of the J. But no matter how you say it, GIF technology allowed the online services company to deliver downloadable color images, a remarkable accomplishment for its time.

The format included two features that quickly earned it favor with programmers as well as the brand-new Web design community: image compression, which reduced the overall file size, and the capacity to hold more than one image (or frame) in a single file. Though it was never intended to serve as a platform for animations, a 1989 revision to the format (popularly known as GIF89a) allowed these frames to be displayed with time delays, permitting frame-by-frame animation. In the mid-1990s, support for the format by the Netscape browser let creators choose the number of times the animation would loop.

A flood of animated GIFs thereby ensued—no respectable website was considered complete without at least one animated GIF, no matter how inane. From then on, the steady, reliable GIF has endured, due largely to its limited capacity for animation, despite competitors like the PNG (Portable Network Graphics) format.

Not surprisingly, animated GIFs played a key role in the commercialization of the Internet. At the dawn of digital advertising, ad blocks were quite tiny, reflecting the low-resolution displays of the time. To attract attention and maximize their marketing messages, advertisers relied on animated GIFs—short slideshows would display the product, deliver the message, close with the oh-so-amazing price, and then loop over and over again.

As time wore on, the GIF format yielded the advertising space to Flash, but there’s been a bit of a reversal in the past few years. If you’re using a MacBook Air or iOS device, chances are that the animated ads you’re seeing are good ol’ GIFs (if not HTML 5).

GIF limits

Despite its improbable success over time, the GIF format is showing its age. A GIF image is limited to a maximum of 256 colors, which was fine for a typical 8-bit monitor circa 1995, but laughable for a modern Apple Cinema display, for example. And while the palette is variable and can be customized to best match the colors in the source image or animation frames, GIF color representation pales in comparison to the 16.8-million-color palette we’re accustomed to with more modern image formats such as JPEG.

GIF files use a compression technique called LZW (Lempel-Ziv-Welch), which is a lossless algorithm poorly suited to animation and video playback. The greater the pixel dimensions of the document, the higher the color count, and the quicker the frame rate, the larger the resulting file size. A 10-second video clip in MP4 format might be 2MB; the same video clip converted to GIF would be more than 20MB.

GIFs tend to be short and sweet as a result, relying on reduced frame rates and restricted color palettes to keep the file size under control. Without sound, animated GIFs are the digital equivalent of silent movies.

These limitations certainly add to the challenge of creating an interesting GIF—but they may also contribute to its enduring charm.

Creating a GIF

A number of apps allow you to make animated GIFs, but I’m going to demonstrate the basics with Photoshop Elements 11, Adobe’s consumer-based image editor, which lets you export your file as an animated GIF. Basically, you just place each frame on a different layer and then, when you export, the layers are compiled into an animation.

Here are the steps to create a rotating flower graphic.

Step 1: Open Photoshop Elements and, at the launch screen, choose the Photo Editor. Now choose File -> New Blank File. Name the new document Animation and then define the size of your document. GIFs are best when fairly small, so enter a width and height of 640-by-360 pixels in dimension. Now set the Background Contents to Transparent and click OK. Once your document opens, click Expert (at the top), and then click the Layers button (lower right) to see the document layers.

Step 2: Choose Layer -> New Fill Layer -> Solid Color. Name the layer Green Background and click OK. Now choose a nice bright color; in my example, I’ve chosen a shade of green (H: 110; S: 40; B: 70).

A perfectly round flower graphic can be rotated with as little as three frames, because the animation only needs to show the motion between two petals.

Step 3: Choose the Custom Shape tool, and you’ll see the tool options slide into view along bottom of the window. First, click the wobbly shape at the top right of the tool options to select Custom Shape (U). Now click the currently defined shape to see other available shapes. At the top of this pop-up panel, you’ll see a pop-up menu allowing you to access more shapes. Choose Nature from this menu, and then select Flower 24. Now hold down the shift key and then drag the cursor across your canvas from the top right down diagonally. Holding down Shift ensures that the object retains the original height-to-width ratio. Stretch the object so it’s almost as tall as your document, and then choose a new color for it from the color swatch pop-up menu to the bottom right of the shape selection menu; in our case, we’ve chosen Pastel Yellow-Green. Lastly, you’ll need to center the object. Select the Move Tool (V); as do you, you’ll see the alignment options appear along the bottom. Select -> Select All, and click both Center and Middle.

Step 4: Choose the Text Tool. As soon as you do, you’ll notice that text options appear along the bottom of the document window. Choose a lightweight font like Helvetica Neue Ultralight at 30 pt, white, and with center justification. Now click in the middle of your document and type SPRING. Click the green checkmark on the bounding box to confirm the text entry. You should then see alignment options along the bottom of the window. Choose Select -> All and then click both Center and Middle alignment icons to fully center the text. Now lock this layer so that you don't accidentally change it. In Layers, click the text layer to select it (if necessary) and then click the padlock icon at the top to lock it down.

Use the transform controls to change the angle of your shape; when exported as a GIF, it will appear to rotate.

Next: The final steps

Subscribe to the Best of TechHive Newsletter

Comments