Morphio
Menu

Animated WebP Maker: Build a Loop from Still Images

Make a little flipbook from your images: choose the opening frame, set how long each one stays on screen, and save a single WebP that moves. The button opens Ezgif’s animated WebP maker; for a local export, use the three-frame Pillow example below.

Assemble your still frames

For a first animation, start with three PNGs: one closed eye, one half-open eye and one open eye, all on the same canvas. Name them 01.png, 02.png and 03.png so the numbered order matches their movement. The same object should stay in the same place unless you intend it to move.

Open Ezgif’s frame editor and choose your files. PNG and JPG are both accepted. Check the order of the thumbnails after import; move any misplaced image before setting delays. If all you have is one still, make a second, visibly different frame first.

Already have motion in a single file? Use GIF to WebP for a GIF or MP4 to WebP for a video instead of rebuilding the sequence by hand.

Set the pace and the repeat

Ezgif measures WebP frame delays in milliseconds. Start with 120 ms on each of the first two frames and 600 ms on the last. One pass lasts 840 ms: the eye opens quickly, then holds. Set any common delay first because changing it later resets the individual delays.

Leave Ezgif’s loop count blank to repeat continuously, or enter a finite count and check where playback stops. Look closely at the transition from the last frame back to the first. If a moving transparent shape leaves a trail, try the option that clears each frame instead of stacking it over the previous one.

To make the same sequence locally, put three still PNGs with the names above in one folder. Run the following Python example there with Pillow and WebP support installed. Change the file list to reorder the frames; each duration belongs to the image in the matching position.

from PIL import Image

frames = []
for name in ("01.png", "02.png", "03.png"):
    with Image.open(name) as image:
        if getattr(image, "n_frames", 1) != 1:
            raise ValueError(f"Choose one still image per frame: {name}")
        frames.append(image.convert("RGBA"))
if len({frame.size for frame in frames}) != 1:
    raise ValueError("Align the frames on equal-size canvases first.")

frames[0].save("sequence.webp", save_all=True, append_images=frames[1:],
               duration=[120, 120, 600], loop=0, lossless=True)
Local example: three PNGs, a pause on the final image, and an endless loop.

Play the exported WebP before sharing it

In the browser editor, generate the animation and watch the result before using Save. The local example writes sequence.webp into your working folder. Open the saved WebP in a browser, then in the app where you plan to use it. A file-manager thumbnail can show only the first image even when the file contains motion.

Check the opening frame, the pause and the restart. If the sequence jumps sideways, align the source canvases; if it stays still, check that the inputs actually differ. Export again after a correction, then reopen the new file rather than relying on the old preview.

For a poster image, save the first frame as PNG to keep transparency, or as JPG for an opaque result. Either conversion produces one still, not the complete animation.

Animation questions

Two details that matter when sharing the result.