Extract two complete frames from a GIF
Admin ·
A moving block from a GIF needs to become two still illustrations. Choose the frames by number and save each full displayed canvas, including any pixels carried over from earlier frames.
Select source frames 2 and 4
Open GIF to Frames and choose Load example. The source is 64 × 40 with four frames and three plays. The sample enters 2, 4 in Frames.
Select Extract frames. Frame 2 has a stored delay of 110 ms and frame 4 has 80 ms. The previews show the complete displayed canvas at each selected point.
Download the original four-frame practice GIFImageMagick animation examples, coalescing displayed frames
Check the edges and the carried-over pixels
Download frame-002.png. Open it over a contrasting background to see the transparent margins. The blue pixels carried over from the first frame are visible where the next frame leaves that area alone.
Compare frame-004.png. The earlier block has cleared from that region. Both files are 64 × 40 even though the GIF stores a smaller changed region for some frames.
Download the original four-frame practice GIFImageMagick animation examples, coalescing displayed framesW3C Portable Network Graphics specification
Save the frames with their original timing
Download gif-frames.zip. It contains frame-002.png, frame-004.png and frame-timing.json. Open the JSON in a text editor to see 110 and 80 ms next to those names.
The manifest loop value is 2 because the GIF requests two repeats after the first play. A zero represents infinite repetition and null represents a missing loop extension.
Download the original four-frame practice GIFW3C copy of the GIF89a specification
Common questions
Will the ZIP contain frames I excluded?
The ZIP contains just the selected PNGs plus their timing report. The source frame numbers stay in the filenames.
Can I download all frames?
Leave Frames blank and run extraction. You can download all displayed PNGs at once in the ZIP.