GIF Frame Editor
Operator: Abdulla Al Fahad. How tools are built and checked
An animated GIF is a stack of small pictures with a delay between them, and most editing jobs are about those pictures: cut the dull frames, slow down the punchline, play the clip backwards, crop out a toolbar. To do any of that, an editor has to take the file apart into real frames, which is harder than it sounds because GIFs store frames as patches on top of earlier frames rather than as whole pictures.
This editor includes its own GIF decoder, which rebuilds each full frame, and its own encoder, which writes the edited animation. It works on a GIF you already have; if you are starting from separate pictures, the images to GIF tool is the better place, and the video to GIF tool covers clips.
Key features
- Frame grid with delete, duplicate, move earlier and later, and a delay for each frame
- Global speed, one delay for all, reverse and ping-pong
- Crop by numbers with an outline on the frame, and resize keeping proportions
- Loop forever, once or a set number of plays
- GIF export with unchanged pixels stored once, and a ZIP of PNG frames
Decoding and re-encoding a GIF
A GIF file holds a screen size, optional global colour table, and a series of frames. Each frame has its own position and size, an optional local colour table, a delay in hundredths of a second, a transparent colour index, a disposal method, and LZW-compressed pixel indices, which may be stored interlaced. The disposal method says what to do with the frame's area before drawing the next one: leave it, clear it to background, or restore what was there before. The decoder handles all of these, plus the NETSCAPE loop count. Files are limited to 25 MB and 500 frames, and the total across frames to 60 million pixels, since every frame is kept as a full RGBA picture.
The editor shows each frame as a card with its number, a delay field in milliseconds, and buttons to move it earlier or later, copy it or delete it. GIF delays are whole hundredths of a second, so a value such as 55 ms is stored as 6 hundredths. Most browsers play a delay under 2 hundredths as about 10, so very short delays will not run as fast as the number suggests.
Whole-animation tools sit beside the preview. Reverse flips the order. Ping-pong adds the frames between the first and last in reverse after the original run, so the first and last frames are not shown twice in a row. The speed setting divides every delay, so 2x halves them, and the delay setting writes one value to all frames. A reset button restores the file as opened.
Crop is set as left, top, width and height in source pixels, with an outline you can show on the full frame, and resize is the output width with the height following the crop's proportions. The output is limited to 4000 pixels on a side. The GIF is saved with a loop setting of forever, once, or a number of plays, or you can export every frame as a PNG in a ZIP, with the crop and size applied.
How it works
Decoding rebuilds an animation canvas as large as the GIF's screen. For each frame it first applies the previous frame's disposal: clearing that frame's rectangle to transparent, or putting back a saved copy of the canvas for restore-to-previous. It then reads the LZW data, undoes interlacing if present, and paints each pixel that is not the transparent index with a colour from the local or global table. A snapshot of the canvas becomes the frame, so every frame you edit is a complete picture that does not depend on its neighbours.
Encoding then runs a median-cut quantiser over the opaque pixels of every frame, counted in 5 bits per channel, to make one palette shared by the whole animation. There is no dithering, so smooth gradients can show bands. If the animation is opaque and you leave Store only changed pixels on, each frame after the first is trimmed to the rectangle that differs from the previous frame, and pixels inside it that did not change are written as a reserved transparent index, which compresses to long runs. If any pixel is transparent, frames are written whole with the clear-to-background disposal so transparency behaves from frame to frame, and the palette holds 255 colours.
Playback in the preview uses each frame's delay with a floor of 20 milliseconds. Crop and resize are applied only to the pictures sent to the encoder and to the preview, so you can change them repeatedly without losing quality in the stored frames.
Common use cases
- Trimming a screen-recording GIF to the part that matters and cropping out the window chrome
- Slowing down the key moment of a reaction GIF by raising a few frames' delays
- Reversing or ping-ponging a clip to make a loop that does not jump
- Pulling every frame out of a GIF as a PNG for sprite or still use
How to use this tool
- Drop in a GIF. The page reports its size, frame count and any warning, such as a file that ends early.
- Delete the frames you do not want and move or copy others using the buttons on each card.
- Set delays per frame, or use the speed setting and Apply, or set one delay for all.
- Use Reverse or Ping-pong if you need a different direction, and crop and resize if required.
- Choose the loop behaviour and press Save GIF, or export frames as PNGs in a ZIP.
Example
A 12-frame GIF at 100 ms per frame, sped up 2x and made to ping-pong
frames 12
delay 100 ms each (10 hundredths)
speed 2x -> 5 hundredths eachResult
ping-pong adds frames 11 down to 2 (10 frames)
frames 12 + 10 = 22
loop time 22 x 50 ms = 1.1 s (was 12 x 100 ms = 1.2 s)Tips for best results
- Resize before saving for the biggest size win. Halving width and height cuts the pixel count to a quarter.
- Delete frames in the dull middle section instead of speeding the whole thing up; the motion stays smooth.
- Leave Store only changed pixels on for screen recordings, where most of each frame is the same as the last, and expect little benefit on full-motion video.
- If you crop, check the outline on the full frame first. The numbers are in the original's pixels, not the resized output's.
Common pitfalls
Saved GIFs use a single shared palette of up to 256 colours with no dithering. A photographic GIF may show more banding than the original, which may have used per-frame palettes.
Partial transparency is not possible in GIF. Pixels under half opacity become transparent and the rest become solid.
Browsers play delays below 2 hundredths of a second more slowly than written, so a GIF with 0 or 1 hundredth delays will not speed up further.
The editor keeps every frame as a full picture in memory, so very large or long GIFs are refused with a message instead of freezing the page.
Corrupt files are read as far as they go and the page says how many frames were found.
Common errors and how to fix them
- This GIF is too large to edit
- It has more frames or pixels than the editor can hold. Resize or trim it in a video tool first, or use fewer frames.
- The file ends early
- The GIF is truncated, so only the frames before the break were read. The page keeps those and warns you.
- This is not a GIF file
- The file does not begin with GIF87a or GIF89a. A renamed PNG or WEBP will be refused; convert it first.
Frequently asked questions
Can I edit a GIF with transparency?
Yes. Transparent areas are read, edited and written back, and each frame is stored whole so transparency survives. Partial transparency is rounded to on or off.
Why is my saved GIF a different size from the original?
The encoder uses one shared palette and different compression, and you may have cropped or resized. Cropping and resizing change size most.