Animation Frame Converter
local processingAnimation Frame Converter
What it is
Animations travel between tools as GIFs, animated PNGs and WebP files, as folders of frames, and as sprite sheets. This tool moves between them. Drop an animated file and it is split into frames with their delays, or drop several images and they become frames in name order. Then change the order (reverse or ping-pong), keep every second, third or fourth frame while the timing is preserved, set one speed for all frames, and scale the frames down. Watch the animation, and export it as a GIF with a limited palette, as an APNG that keeps full colour and transparency, as a sprite sheet with a JSON file that lists every frame and its delay, or as numbered PNG frames.
When to use it
Use it to turn a GIF into frames for a game engine, to build a sprite sheet from an animation, to make a GIF or APNG from rendered frames, to shrink an animation by dropping frames and scaling, or to make a loop that plays forward and back.
Gotchas & limits
GIF is limited to 256 colours with on or off transparency, so gradients and soft edges look rougher than in the original or in an APNG. GIF delays are counted in hundredths of a second and browsers treat delays under 20 ms as slower. Reading animated GIF, WebP and APNG files needs a browser with image decoding support (current Chrome and Edge); otherwise only the first frame is read, and you can still use a set of separate frames. Frames of different sizes are fitted into the size of the first frame. Large animations use a lot of memory, so the size and the number of frames are limited. Animated WebP output is not offered.