Image Tools

How to Make an Animated GIF From Photoshop Layers or Separate Images

By Raja JahangirPublished December 1, 20264 min read
Infographic: three stacked layers holding red, yellow and green circles with an arrow into a looping frame, a card of five test results, and four numbered steps from export to download

Key takeaways

  • File > Export > Layers to Files saves each Photoshop layer as its own PNG, which a browser GIF maker turns into one frame each.
  • Each layer must be a complete picture, because transparent areas turn white, so merge the background into moving-object layers first.
  • Frames per second equals 1000 divided by the delay, and one loop lasts the number of frames times the delay.
  • In our test three 1200 x 900 PNG frames became an 800 x 600 looping GIF of 8,922 bytes at 500 ms.

You can turn Photoshop layers into an animated GIF without touching the Timeline panel. Export each layer as its own PNG with File > Export > Layers to Files, then drop those images into a free GIF maker, where each image becomes one frame. Put the frames in order, pick one delay and download a looping animation.gif. In our test, three 1200 x 900 PNG frames became an 800 x 600 GIF of 8,922 bytes at the default 500 ms delay, built entirely in the browser.

Step 1: export every layer as a separate image

Adobe's help page describes the export in a few clicks: choose File > Export > Layers to Files, pick a destination folder, type a File Name Prefix, choose a File Type and run it. Each layer is saved as its own file, named with the prefix and the layer name. Three settings matter for animation:

  • File Type: PNG. It keeps the frame sharp; the GIF maker accepts JPG, PNG, WebP and GIF.
  • Visible Layers Only. Hide guide layers, notes and anything that should not become a frame, then tick this box so only the frames are exported.
  • One complete picture per layer. The GIF maker shows each file as a full frame. If your animation is one object moving over a fixed background, each exported layer holds only the object, and its transparent areas turn white in the GIF. Merge a copy of the background into each frame layer before you export.

The same workflow works from any editor that can save layers or artboards as separate files, and from a folder of photos or screenshots.

Step 2: name and order the frames

Layer names become file names, so rename layers in the order they should play, for example 01-start, 02-middle, 03-end. When you add the files to the GIF maker, each one appears as a thumbnail with left and right arrows and a number showing its frame position, plus an x to remove it. If the order comes out wrong, fix it there before you build; you do not need to go back to Photoshop.

Four numbered steps from Photoshop layers to a looping GIF beside a photo of a designer at a monitor showing four sunset frames side by side

Step 3: build the GIF and check the result

Add the images, move the frame delay slider (100 to 2000 ms, in 50 ms steps), click Create GIF, and the browser downloads animation.gif. Here is what the live tool produced from three exported frames:

Setting Our test
Input 3 PNG frames, 1200 x 900, about 31 KB each
Frame delay 500 ms (the default)
Output size 800 x 600
File size 8,922 bytes
Loop Forever
One loop lasts 1.5 seconds (3 frames x 500 ms)

There is no preview player, so the download is your first look. Open it in a browser tab to watch it loop, and if the pace is wrong, the frames are still loaded: move the slider and click Create GIF again.

How to choose the frame delay

The GIF89a specification stores each frame's delay in hundredths of a second, which is why delays are set in steps rather than any exact millisecond; the encoder rounds 500 ms to 50 hundredths. Two formulas cover the rest:

  1. Frames per second = 1000 / delay in ms. A 250 ms delay plays at 4 frames per second.
  2. Loop length = number of frames x delay. Twelve frames at 250 ms make a 3-second loop.

As a rule of thumb, 100 to 200 ms suits motion such as a product spin, about 500 ms suits a photo slideshow, and 1000 to 2000 ms gives viewers time to read frames with text on them. Every frame shares one delay, so to hold a title card or the last frame longer, add that image two or three times in a row.

What changes between your layers and the GIF

A GIF is a much simpler format than a layered PSD, so expect four differences:

  • Size. The longest side is capped at 800 pixels. Frames with different shapes are fitted onto one canvas with white bands, so give every frame the same aspect ratio first with the image cropper or set exact dimensions with the image resizer.
  • Colours. Each frame is reduced to its own 256-colour palette without dithering. Logos, flat art and screenshots stay crisp; smooth photo gradients can show bands.
  • Transparency. Transparent areas become white. If you want a cut-out subject on a clean background, run each frame through the background remover first.
  • Timing. One delay for every frame, looping forever.

If you need a different delay per frame, a transparent background or frames larger than 800 pixels, build the animation in an editor with a full animation timeline instead, such as Photoshop itself. For short loops, banners, reaction GIFs and step-by-step demos, exporting layers and building the GIF in the browser is faster. For background on how GIF compares with PNG, JPG and WebP, see JPG vs PNG vs WebP: which format to use.

Sources

Frequently asked questions