Export & Codecs

Make an Animated GIF in GIMP Without Wrecking the File Size

Make an Animated GIF in GIMP Without Wrecking the File Size
Image: Vipid

To make an animated GIF in GIMP, put each frame on its own layer, give every layer a delay, then export with File > Export As and tick As animation. GIMP 3.2.8, announced as the current stable release on November 2, 2026, still works this way, and it costs nothing. The program has no timeline. Layers are the timeline, and that single idea explains every setting you will touch.

This tutorial builds one finished animated GIF in GIMP from scratch: a 480×270 bouncing ball, 24 frames, a 3.1 second loop. You will draw the frames with a short Python script, load them as layers, set per-frame delays, preview the loop, pick export options, and check the result with ffprobe and gifsicle. Twelve numbered steps, seven pitfalls and twelve troubleshooting entries follow, and every code block can be pasted as is.

GIF is the right container for a short loop in a forum post, a README or an email. It is the wrong one for anything longer than a few seconds, because it caps each frame at 256 colors and compresses poorly. The later sections show how to turn the GIF into an MP4 when the file gets heavy, so you keep the GIMP workflow and still ship something light.

What you need before you start (Step 1)

Install GIMP 3.2.8 or newer. Per the official release page and downloads page, checked November 29, 2026, the project ships Windows installers and Microsoft Store packages, plus macOS DMG packages for Intel and Apple Silicon. The downloads page also lists Linux builds, including AppImage, Flatpak and Snap, according to the same page. GIMP is free and open source, and no paid edition appeared in the official pages reviewed.

Everything else in the project is optional or free. Python and Pillow draw the frames. FFmpeg gives you ffprobe for inspecting the GIF and a route to MP4 or WebP. gifsicle squeezes the final file. If you would rather use your own artwork, skip Python and drop your PNG frames into a folder.

ToolVersion to useCostJob in this tutorial
GIMP3.2.8 (current stable release)Free, open sourceLayers, delays, preview, GIF export
Python 3Latest 3.xFreeRuns the frame script
PillowLatest versionFreeDraws the 24 PNG frames
FFmpegLatest releaseFreeffprobe check, MP4 and WebP conversion
gifsicleLatest release (optional)FreeInspects delays, trims file size

Confirm each tool answers before you open GIMP. The first line of the GIMP output should name version 3.2.8 or later. If you installed the Flatpak build, prefix the command with flatpak run org.gimp.GIMP instead of gimp.

gimp --version
python3 --version
python3 -m pip install --upgrade pillow
ffmpeg -version
gifsicle --version

A typical first line from GIMP looks like the next block. Your build string may differ slightly by platform.

GNU Image Manipulation Program version 3.2.8

One housekeeping note. Plenty of GIMP animation tutorials online still describe GIMP 2.8 or 2.10 screens. The official animation filter pages that turned up in research for this article were partly the older 2.8 documentation set, so menu names below follow the 3.2 manual and the layer-name syntax it documents. If a label differs on your build, look for the same words in the same menu.

How GIMP turns layers into frames

GIMP builds a GIF animation from the layer stack. The bottom layer is frame 1, the layer above it is frame 2, and so on up to the top layer. When the GIF exporter runs with As animation enabled, it walks the stack from the bottom and writes one GIF frame per layer. With the option off, it flattens the visible layers into a single still image. That is the most common reason a first attempt exports as a static picture.

Timing lives in two places. The export dialog has a fallback delay in milliseconds for any frame that has no delay of its own. A layer name can also carry parameters, and the GIMP 3.2 manual states that the layer name can specify animation settings for that frame. So frame_23 (800ms)(replace) means: hold this frame for 800 milliseconds and use the replace disposal. Layers without a bracketed delay fall back to the dialog value.

Replace versus combine

Disposal tells the viewer what to do with the previous frame before drawing the next one. Replace clears the canvas, so each layer must be a complete picture. Combine leaves the old frame in place and draws the new layer over it, so a layer can hold only the pixels that changed. Beginners should use replace. Every frame is a full 480×270 image, nothing smears, and the result matches what you see in the layer stack.

Combine matters once you optimize. GIMP’s documented Optimize (for GIF) filter converts replace layers into combine layers and trims each frame down to the changed region, which is how a plain export becomes a smaller one. A later section covers when that helps and when it backfires.

What GIMP will not do for you

GIMP does not tween. It will not move the ball between two keyframes for you. Every frame is drawn, painted or imported by hand or by script. That is fine for loops of 8 to 40 frames, such as a blinking logo, a pulsing button or a screen-recording snippet. For long clips, scrubbing a timeline in a video editor and exporting a GIF at the end is less work.

It also does not manage memory kindly when the stack grows. Each layer is a full-size bitmap held in RAM, plus the undo history for every edit. A 480×270 layer is tiny, so 24 of them cost almost nothing. A 1920×1080 layer is sixteen times the pixels, and 100 of them will slow a laptop to a crawl. Size the canvas for the destination and the stack stays light.

Plan the canvas, frame count and timing (Step 2)

Decide four numbers before you draw anything: canvas size, frame count, delay per frame and loop behavior. Changing any of them later means redrawing or rescaling every layer. The values below are the ones used in the working project, and the arithmetic is simple enough to redo for your own clip.

Illustrative: A hand holds a strip of colour negative film showing four frames of a pagoda-style building against a plain
Photo: Luriko Yamaguchi / Pexels
Render settingsProject valueReason
Canvas480×270 px (16:9)Small enough for a short loop and a modest file size
Frame count24Enough for a short loop, and the file is compressed on export
Delay per frame100 ms (10 frames per second)Round number, no rounding problem in the file
Final frame hold800 msBrief rest before the loop restarts
Loop length3.1 s (23 x 100 ms + 800 ms)Short enough to read as a loop
Color modeIndexed, 64 colorsThe art uses few flat colors, a small palette is enough
LoopForeverStandard for reaction clips and UI demos
Export formatGIF, then optional MP4 and WebPGIF for the post, MP4 for the site

A GIF stores each delay in hundredths of a second, so your real choices are multiples of 10 ms. A delay of 100 ms writes cleanly. A delay of 83 ms, which looks like 12 frames per second, gets stored as 8 hundredths, so you effectively play at 12.5 frames per second and the clip runs a little fast. Very short delays are the other trap. Many browsers treat anything under 20 ms as slower than it is written, so asking for 10 ms to fake 100 frames per second does not work.

Frame count drives file size more than any other choice. Halving the frames from 24 to 12 and doubling each delay to 200 ms gives the same 2.4 seconds of playback with half the image data, at the cost of choppier motion. For UI demos and reactions that is usually a good trade. For character motion, stay at 10 frames per second or above. If you already have a GIF in the wrong dimensions, cropping every frame of an existing GIF is quicker than rebuilding the layers, but a new project should start at the final size.

Pick the canvas size to match where the GIF will live. Embedded in a blog column, 480 px wide is a sensible ceiling. Pasted into a chat, smaller still. You can always scale down in GIMP with Image > Scale Image, but scaling up a 256-color image gives soft, blotchy results.

Sketch the motion on paper in three beats: start pose, extreme pose, end pose. For the ball, that is resting, top of the arc, resting again. Then decide how many frames each leg gets. Twelve up and twelve down is symmetrical and easy to script. A real bounce spends more time near the top than near the ground, which the sine curve in the script handles for you.

Build the frames (Step 3)

You can paint frames in GIMP by hand, export them from another app, or generate them with code. Code wins for a tutorial because it makes the project reproducible. The script below draws a ball that rises and falls in one smooth arc with a shadow that shrinks as the ball lifts. It renders at 2x and shrinks with a Lanczos filter, which gives clean anti-aliased edges that the GIF palette can handle.

import math
from pathlib import Path
from PIL import Image, ImageDraw

W, H = 480, 270
SCALE = 2
FRAMES = 24
OUT = Path("frames")
OUT.mkdir(exist_ok=True)

for i in range(FRAMES):
    t = i / FRAMES
    lift = math.sin(math.pi * t)

    img = Image.new("RGB", (W * SCALE, H * SCALE), "#101826")
    d = ImageDraw.Draw(img)

    ground = 220 * SCALE
    cx = (W * SCALE) // 2
    d.rectangle([0, ground, W * SCALE, H * SCALE], fill="#1c2a40")

    shadow_w = int((60 - 30 * lift) * SCALE)
    d.ellipse([cx - shadow_w, ground - 6 * SCALE,
               cx + shadow_w, ground + 6 * SCALE], fill="#0a0f19")

    r = 28 * SCALE
    cy = ground - r - int(120 * SCALE * lift)
    d.ellipse([cx - r, cy - r, cx + r, cy + r], fill="#ff6b35")

    img = img.resize((W, H), Image.Resampling.LANCZOS)
    img.save(OUT / f"frame_{i:02d}.png")

print(f"wrote {FRAMES} frames to {OUT}/")

Save it as make_frames.py and run python3 make_frames.py. The output line and folder listing should look like this.

wrote 24 frames to frames/
frames/frame_00.png  frames/frame_01.png  ...  frames/frame_23.png

Notice the zero-padded names. frame_02.png sorts before frame_10.png, while frame_2.png would sort after frame_10.png in many file pickers. GIMP imports multiple files in the order the picker hands them over, so padded numbers prevent a scrambled animation before you have even started.

Working from a video clip instead? FFmpeg can cut a short span into numbered PNGs at the frame rate and width you chose in Step 2. This example takes 2 seconds starting at the 3 second mark, samples 10 frames per second and scales to 480 px wide.

mkdir -p frames
ffmpeg -ss 3 -t 2 -i clip.mp4 -vf "fps=10,scale=480:-1:flags=lanczos" frames/frame_%02d.png

That produces 20 frames numbered from 01. Two seconds at 10 frames per second is 20, and each should play at 100 ms. Keep the clip short. Every extra second at 10 frames per second adds 10 more full-size layers to GIMP’s memory.

Open the frames as layers and fix the stack (Steps 4 and 5)

Step 4: load the files. In GIMP choose File > Open as Layers. Browse to the frames folder, click the first PNG, hold Shift and click the last one so all 24 are selected, then confirm. GIMP creates a new image sized to the imported files and stacks every PNG as a layer. The Layers dialog (Windows > Dockable Dialogs > Layers if it is hidden) shows 24 entries named after the files.

Step 5: confirm the order. Read the Layers dialog from the bottom up. frame_00 must sit at the bottom and frame_23 at the top. If the order came out reversed, use Layer > Stack > Reverse Layer Order once. Do not drag layers one by one. A single menu command fixes all 24 and cannot leave a mistake behind.

Check size and the hidden background layer

Three quick checks save most debugging later. First, open Image > Canvas Size and confirm 480×270. Second, scan the Layers dialog for any layer whose outline differs from the canvas, and run Layer > Layer to Image Size on each one. Layers that hang over the edge are cropped at export, and short layers leave transparent holes that show the previous frame through them. When many layers differ, it is faster to re-import them from same-sized PNGs. Third, look for a stray Background layer. An image started with File > New usually has one, and it becomes frame 1 of your GIF if you leave it in the stack.

Save a working copy now with File > Save As and a .xcf extension, for example bounce.xcf. The XCF keeps all layers, names and delays, and it is your source file. A GIF is a delivery copy. Rebuilding frames from a GIF loses the original colors, so never treat the GIF as the master.

One more habit worth forming: switch off the layers you are not editing before you paint, and turn them all back on before export. A layer with its eye toggled off will usually drop out of the animation, which looks like a missing frame in the preview.

Set per-frame delays, then preview the loop (Steps 6 and 7)

Step 6: name the layers. You have two options. The lazy route leaves every layer name alone and sets one global delay in the export dialog. The precise route renames layers so each frame carries its own delay and disposal. Use the precise route for frames that need a hold, such as the last frame here. Double-click a layer name to edit it, then type the new name and press Enter.

frame_00
frame_01
...
frame_22
frame_23 (800ms)(replace)

Frames 00 to 22 stay untouched and pick up the dialog default of 100 ms. Frame 23 holds for 800 ms. If you prefer to be explicit everywhere, rename all of them to frame_00 (100ms)(replace) and so on. That is 24 renames by hand, so do it only when different frames need different timings, such as a slow-in, slow-out ease where the first and last frames hold 200 ms and the middle ones run at 60 ms or 100 ms. Remember that GIF delays are multiples of 10 ms.

Step 7: preview. Open Filters > Animation > Playback. A small window plays the layer stack. Watch for three things: the order of motion, any flicker caused by a frame at the wrong position, and the length of the hold on the last frame. Treat the preview as a check of order and feel, then confirm final timing on the exported file, because the preview and the exporter can read missing delays differently.

Transparent frames need an extra decision at this stage. GIF supports on or off transparency per pixel, with no partial opacity. Soft shadows and anti-aliased edges that sit over a transparent background will show a halo against any page color other than the one they were rendered on. The simplest fix is a solid background layer inside every frame, as the ball project does. If you need a cut-out loop, read how to remove the background from an animated GIF and plan the edge treatment before drawing.

If the preview looks wrong, fix it here. Editing frames after you have converted to indexed color is possible but awkward, because paint tools then work inside the limited palette.

Export the animated GIF (Steps 8 and 9)

Step 8: set indexed color. GIF can only store indexed color, so GIMP needs to reduce your 24 RGB layers to a palette. It may offer to convert during export, but doing it yourself gives you control. Choose Image > Mode > Indexed. Pick Generate optimum palette, set the maximum number of colors to 64, and choose a dithering option. Use None for flat artwork like this ball, because dithering adds speckle that hurts compression. Use Floyd-Steinberg (normal) only for photographic frames or gradients that would otherwise band. Confirm with Convert.

GIMP applies one palette across the whole image when you convert this way, which keeps colors steady from frame to frame. A palette generated per frame can shift slightly between frames and produce a shimmer in flat areas. Save the XCF before converting and treat the indexed version as disposable. If 64 colors look rough, undo with Ctrl+Z and try 128.

Step 9: export. Choose File > Export As, type bounce.gif as the file name and press Export. The GIF dialog opens. Tick As animation first, because the other options only matter once it is on. The GIMP 3.2 manual documents these controls on its Export Image as GIF page, and the table lists what each one does in practice, as checked November 29, 2026.

Dialog optionSet it toWhat it does
As animationOnWrites one GIF frame per layer instead of one flattened picture
Loop foreverOnRepeats until the viewer stops it
Number of repeatsOnly if Loop forever is offPlays the loop a fixed count, such as 3
Delay between frames where unspecified100 (milliseconds)Fallback delay for layers with no bracketed value
Frame disposal where unspecifiedOne frame per layer (replace)Fallback for layers with no (replace) or (combine) tag
Use delay entered above for all framesOff for this projectOverrides every layer name, so leave it off if you set an 800 ms hold
InterlaceOffStores rows in passes for slow connections, rarely useful for loops

Click Export. The file appears in the folder you chose within a second or two. If you want help picking between GIF and other output types for the rest of your pipeline, the export and codec guides compare the modern alternatives in more depth. The entries in the dialog may look slightly different from the table on your build, and a few options are only shown in expanded views, so match by wording rather than position.

Optimize for GIF, and know when to skip it (Step 10)

Filters > Animation > Optimize (for GIF) rebuilds the animation so each frame stores only the pixels that changed from the one before. In the GIMP documentation, the filter converts (replace) layers into (combine) layers, then crops each layer to the area that differs. GIMP writes the result as a new image, so your original stack stays untouched. The animation filters menu also lists Optimize (Difference) and Unoptimize, which reverse the process when you need to edit an already optimized file.

Run it after the preview looks right and before the final export. Open the new image it creates, check the layer names (they now carry the combine tag and trimmed offsets), and export that image with the same dialog settings as before. For the bouncing ball, most of each frame is the identical dark background. Only the ball and its shadow change, so each frame shrinks to a small box around them.

When optimization backfires

Optimization pays off when most of the frame stays still. It pays off less when the camera moves, the whole background scrolls, or you applied dithering, because dither patterns change pixels everywhere. It can even produce an optimized file that is no smaller than the plain export when nearly every pixel changes. Compare the two file sizes on disk before you commit to one.

Combine frames have one more catch. Because later frames only add pixels, a layer with transparent areas can leave old pixels showing through in odd places if you edit the optimized image afterward. Edit the original stack, not the optimized copy. Keep the original XCF, regenerate the optimized version when you change frames, and treat Optimize (for GIF) as a final step, never a working state.

Some viewers, older chat clients especially, mishandle combine-optimized GIFs and show trails or black boxes. When you see that, export the unoptimized replace version and let gifsicle in the next section do the trimming, which writes the frame data in a way these viewers usually handle.

Check the file and cut the size (Steps 11 and 12)

Step 11: verify. Never trust that an export did what the dialog suggested. Ask the file. ffprobe counts the frames it can actually decode, which catches the single-frame export instantly.

ffprobe -v error -select_streams v:0 -count_frames \
  -show_entries stream=width,height,nb_read_frames \
  -of default=nw=1 bounce.gif
width=480
height=270
nb_read_frames=24

If nb_read_frames says 1, As animation was off. If it says 25, a stray Background layer rode along. Then read the delays and disposal that GIMP wrote with gifsicle’s info mode. This output is abridged and shows the shape you should see, with replace layers reported as disposal background.

gifsicle --info bounce.gif

* bounce.gif 24 images
  logical screen 480x270
  global color table [64]
  loop forever
  + image #0 480x270
    disposal background delay 0.10s
  ...
  + image #23 480x270
    disposal background delay 0.80s

Step 12: shrink. Run gifsicle’s optimizer over the export. Level 3 tries the most strategies and takes a little longer. The second command also reduces the palette to 32 colors and scales the width to 360 px, which is useful when the post has a size limit.

gifsicle -O3 bounce.gif -o bounce-opt.gif
gifsicle -O3 --colors 32 --resize-width 360 bounce.gif -o bounce-small.gif
ls -l bounce*.gif

The sizes you get depend on your art, so judge by the ratio between the files rather than by any number from this page. Flat artwork like the ball usually shrinks a lot, photographic frames far less. Recent gifsicle builds also accept a --lossy switch for stronger savings, but not every distribution compiles it in, so check gifsicle --help first.

Shrinking a GIF follows the same rules as shrinking any video. Fewer frames, smaller dimensions, shorter duration and fewer colors each cut size, and the first two cut the most. The wider topic of reducing video file size covers codec-level options that GIF cannot use at all, which is the reason the next section exists.

GIF, MP4, WebP or APNG: which output to ship

GIF is the universal option, and that is its only real advantage. It plays almost anywhere an image can go, loops by default and needs no player. Its drawbacks are a 256-color palette per frame, 1-bit transparency and weak compression. Animated WebP and APNG store full color and smoother alpha. MP4 uses video compression, which usually yields the smallest file for the same motion, but it needs a video element or a platform that accepts video.

FormatColorsTransparencyTypical sizeBest for
GIF256 per frameOn or off onlyLargest of the fourChat, email, forums, READMEs
Animated WebPFull colorSmooth alphaWell below GIFWeb pages that need alpha
APNGFull colorSmooth alphaBetween GIF and MP4Lossless UI loops
MP4 (H.264)Full colorNoneUsually smallestLanding pages, social video, longer clips

The size column is qualitative on purpose. Published comparisons put the same animation at very different sizes depending on content, and a flat loop behaves nothing like a photographic one. Test your own file.

Both conversions are one-liners with FFmpeg. The MP4 command pads dimensions to even numbers because H.264 in the yuv420p format requires them. Put the result in an HTML video tag with autoplay, loop, muted and playsinline attributes to get GIF-like behavior from a much smaller file.

ffmpeg -i bounce.gif -movflags +faststart -pix_fmt yuv420p \
  -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" bounce.mp4

ffmpeg -i bounce.gif -loop 0 bounce.webp

For deeper background on why MP4 usually beats the alternatives on the web, see the comparison of WebM and MP4. If your loop is a logo reveal, animated logo file formats explains which of these containers suits each destination. The short version is that GIF belongs on platforms that only accept images, and MP4 belongs everywhere else.

The complete working project

Here is the full project in order, so you can run it end to end. Create a folder called bounce-gif and work inside it. The folder ends up with the frame script, the PNG frames, the GIMP source file and four deliverables.

bounce-gif/
  make_frames.py        (Step 3 script)
  frames/               (24 PNG files, frame_00 to frame_23)
  bounce.xcf            (GIMP source, all layers kept)
  bounce.gif            (GIMP export, As animation on)
  bounce-opt.gif        (gifsicle -O3)
  bounce.mp4            (FFmpeg, for the web page)
  bounce.webp           (FFmpeg, full color)

The sequence inside GIMP takes about ten minutes once the frames exist. Open as Layers, check the stack order, rename frame 23 to frame_23 (800ms)(replace), preview with Playback, convert to Indexed at 64 colors with no dithering, then export with As animation on, Loop forever on, 100 ms fallback delay and replace disposal. Save the XCF before you convert, not after.

After export, one script handles verification and every other output. Save this as finish.sh and run it with sh finish.sh. It stops at the first error, prints the frame count and creates the optimized GIF, the MP4 and the WebP in one pass.

#!/bin/sh
set -e

echo "Frames in export:"
ffprobe -v error -select_streams v:0 -count_frames \
  -show_entries stream=nb_read_frames -of default=nw=1:nk=1 bounce.gif

gifsicle -O3 bounce.gif -o bounce-opt.gif

ffmpeg -y -loglevel error -i bounce.gif -movflags +faststart \
  -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" bounce.mp4

ffmpeg -y -loglevel error -i bounce.gif -loop 0 bounce.webp

ls -l bounce.gif bounce-opt.gif bounce.mp4 bounce.webp

The first printed line should read 24. The four listed files should all exist, with the MP4 and the WebP smaller than the plain GIF in most cases. If a file is missing, the set -e line will have stopped the script at the failing command, and the message above it names the cause.

To adapt the project, change four things: the frame script (or drop in your own PNGs), the canvas size in Step 2, the hold frame’s delay, and the palette size in Step 8. Everything else stays the same. Treat the finished folder as a template. A new loop is a new frames directory and a fresh XCF, and the finishing script runs unchanged.

Common pitfalls with an animated GIF in GIMP

  • Leaving As animation unticked. GIMP then exports one flattened still, and the file looks fine in a thumbnail. Always check the frame count with ffprobe.
  • Forgetting the Background layer. A blank layer at the bottom of the stack becomes frame 1 and gives you a one-frame flash at the start of every loop.
  • Unpadded file names. frame_2 through frame_10 import in a scrambled order. Pad to two or three digits.
  • Saving as GIF instead of XCF. If you close GIMP after exporting only a GIF, the layers are gone. Save the XCF first and every time you change a frame.
  • Setting delays below 20 ms. Browsers often slow these down, so the animation plays slower than you planned. Stay at 20 ms or above and prefer multiples of 10.
  • Editing after Optimize (for GIF). The optimized image holds trimmed combine layers, which are hard to paint on. Go back to the original stack, change it and optimize again.
  • Exporting photographic frames at full size. A 1080p photo sequence in GIF is huge and still looks banded. Scale to 480 px wide or switch to MP4.

Most of these cost a few minutes, not hours, but they repeat. A short checklist taped near the monitor works: stack order, canvas size, no Background layer, indexed mode, As animation, frame count check.

Troubleshooting: 12 problems and fixes

  1. The export is a single still image. As animation was off, or only one layer was visible. Re-open the export dialog, tick As animation, make sure every frame layer has its eye icon on, and re-check with ffprobe.
  2. The animation plays too fast or too slow. The delay fallback or the layer-name delays are not what you think. Run gifsicle --info to read the stored delays, then fix the layer names or the fallback value. Remember that Use delay entered above for all frames overrides every layer name.
  3. Old frames leave trails or ghosts. Disposal is set to combine on layers that are complete pictures. Rename the layers with (replace) or set the dialog’s disposal to one frame per layer (replace).
  4. Frames play in the wrong order. Open as Layers stacked them in reverse. Use Layer > Stack > Reverse Layer Order and re-preview with Playback.
  5. A light or dark fringe appears around edges. GIF has no partial transparency, so anti-aliased edges against transparent areas pick up the wrong color. Put a solid background in every frame or match a matte color to the page.
  6. Gradients show stripes. The palette is too small. Raise the color count to 128 or 256, or turn on Floyd-Steinberg (normal) dithering for that frame set and accept the larger file.
  7. The file is much bigger than expected. Count frames, check dimensions and look for dithering. Reduce the frame count first, scale down second, then run gifsicle -O3. If it is still heavy, convert to MP4.
  8. Part of the picture is cut off or shifted. Some layers are not the canvas size or sit at an offset. Run Layer > Layer to Image Size on each odd layer and compare against Image > Canvas Size, or re-import the frames from same-sized PNGs.
  9. The loop plays once and stops. Loop forever was unticked, or a viewer ignores the loop extension. Re-export with Loop forever on. If the viewer still stops, test in a browser tab to separate a file problem from a viewer problem.
  10. Colors look different from the source PNGs. Palette reduction shifted them. Increase the palette, pick Generate optimum palette instead of a web palette, or reduce dithering. Flat brand colors may need a manual palette.
  11. The Playback window shows a blank or odd first frame. A frame layer is hidden, offset or has an unexpected opacity. Check the Layers dialog for the eye icon and the opacity slider on each layer, then reopen Playback.
  12. The optimized GIF looks broken in one app but fine in another. That app mishandles combine disposal or trimmed frame offsets. Export the plain replace version, run gifsicle for size, and test again in the target app.

When none of these match, bisect. Export only the first four layers, check the result, then add frames back until the bug appears. The frame you added last is usually the cause.

Advanced tips for GIF animation in GIMP

Ping-pong loops. For a back-and-forth motion, you do not need to draw the return trip. Duplicate the stack, reverse the duplicates with Layer > Stack > Reverse Layer Order, and drop the first and last of the duplicated set so the turnaround frame does not appear twice. A 12-frame move becomes a 22-frame ping-pong.

Ease with delays, not extra frames. Instead of drawing more in-betweens, make the first and last frames of a move last longer. Setting those frames to 200 ms and the middle frames to 60 ms gives a believable slow-in and slow-out with no extra layers, and the file barely grows.

Keep the first frame meaningful. Many chat apps and social feeds show only the first frame until the viewer taps or hovers. Make frame 1 a readable picture, not a blank or a half-built shape. For a reveal, consider starting on the finished state and animating to it.

Plan the loop point. Loops feel clean when the last frame is one step before the first, not identical to it. If frame 23 and frame 00 are the same image, you get a visible stall. That is why the ball project holds the last frame deliberately, so the pause reads as a beat, not as a glitch.

Test in the destination. Upload the GIF to the real place before you call it done. Platforms recompress, cap sizes and sometimes convert GIFs to MP4 on their side. If you want a branded motion clip as the source instead of drawn frames, intro themes with resolution, length and frame rate show the specs that a rendered clip carries before it ever reaches a GIF.

Use the video route for anything long. Past roughly 5 seconds or 50 frames, build the clip in a video editor, export an MP4 and only then cut a GIF if a platform demands one. GIMP is at its best for short, flat, hand-made loops. Treat it as a precision tool for small animations, not a replacement for an editor.

Make frame sets reusable. Keep a folder of source PNGs per loop, with the script that made them. When a client wants a different color or size, you regenerate in seconds, rerun the GIMP steps and ship. The project folder above is built for exactly that.

Common questions

How do I make an animated GIF in GIMP? Put each frame on a separate layer, with the first frame at the bottom of the stack. Check the order with Filters > Animation > Playback, convert to Indexed color if you want control of the palette, then use File > Export As, choose GIF and tick As animation. Set Loop forever and a delay in milliseconds, then export.

Does GIMP 3 still support animated GIFs? Yes. GIMP 3.2.8 is the current stable version, and the 3.2 manual documents GIF export with the As animation option, repeat settings and frame delays in milliseconds. The release itself focused on bug fixes and security updates, and no change to GIF export was announced.

How do I set the frame delay in GIMP? Use the fallback value in the GIF export dialog for all frames, or put a delay in brackets inside a layer name, such as frame_05 (200ms)(replace). Per-layer values win unless you tick Use delay entered above for all frames. GIF stores delays in hundredths of a second, so use multiples of 10 ms.

Why is my GIMP animated GIF so large? GIF compresses each frame separately and has no motion-based compression. Reduce frame count, scale the canvas down, drop the palette to 64 or 32 colors, avoid dithering on flat art and run Optimize (for GIF) or gifsicle. If it is still too big, export MP4 or WebP instead.

What does Optimize (for GIF) do? It rebuilds the layer stack so each frame stores only the region that changed, converting replace layers to combine layers. The result opens as a new image. It shrinks files when most of the picture stays still and does little when every pixel changes between frames.

Can I make a GIF from a video clip in GIMP? Indirectly. GIMP does not import video as frames, so cut the clip into numbered PNGs with FFmpeg first, then open them with File > Open as Layers and follow the same steps. Keep the clip to a few seconds and scale it to 480 px wide to keep the layers manageable.

Is GIMP free for making GIFs? Yes. GIMP is free, open-source software, and the official pages reviewed on November 29, 2026 list no paid plan. Python, Pillow, FFmpeg and gifsicle are free too, so the full project in this tutorial has a software cost of $0.

Make it with Vipid

Jonah Reyes

Editing & Export Editor · Vipid Team

Jonah Reyes is the Editing & Export Editor at Vipid. He covers editing software, export settings and codecs, and the video specs of YouTube, Shorts, TikTok and Reels, plus OBS and screen recording. He builds Vipid’s spec tables from the platforms’ own documentation and re-checks them every 60 to 90 days, so the numbers in a guide match what the upload dialog actually accepts.

All articles by Jonah Reyes ›   How we check tools ›

More from the Vipid blog

Convert MPG to MP4 for Free: FFmpeg, HandBrake, VLC
Export & Codecs

Convert MPG to MP4 for Free: FFmpeg, HandBrake, VLC

Jonah Reyes·30 Nov 2026
Edit Mp4
Export & Codecs

Edit Mp4

Jonah Reyes·30 Nov 2026
MKV a MP4: Convert MKV to MP4 Without Losing Quality
Export & Codecs

MKV a MP4: Convert MKV to MP4 Without Losing Quality

Jonah Reyes·29 Nov 2026

Blog

Intros & Templates
Titles & Motion
Streaming
Editing & Export
AI Video

Vipid

About Vipid
Themes
News archive 2011–2016
Vipid Team

Editorial

Editorial policy
How we check tools
Corrections

Legal

Privacy policy
Terms of service
Making video intros since 2010.
The Vipid blog covers the tools behind them.