sprite-animator

Verified·Scanned 2/17/2026

Generate animated pixel art sprites from any image using AI. Send a photo, get a 16-frame animated GIF.

from clawhub.ai·vaa9b132·2.1 KB·0 installs
Scanned from 0.1.0 at aa9b132 · Transparency log ↗
$ vett add clawhub.ai/awlevin/sprite-animator

Sprite Animator

Generate animated pixel art sprites from any image. Uses nano-banana-pro (Gemini) to create a 16-frame sprite sheet in a single request, then assembles it into an animated GIF.

Quick Start

# Wave animation (default 16 frames)
uv run --with sprite-animator sprite-animator -i photo.png -o sprite.gif -a wave

# Bounce animation with larger sprites
uv run --with sprite-animator sprite-animator -i avatar.png -o bounce.gif -a bounce -s 256

# Keep the raw sprite sheet and individual frames
uv run --with sprite-animator sprite-animator -i pet.jpg -o dance.gif -a dance --keep-sheet --keep-frames

Animations

TypeDescription
idleSubtle breathing + blinking loop
waveArm raises, waves back and forth, lowers
bounceCrouch → jump → land → recover
danceLean, spin, jump — fun and energetic

Options

FlagDescription
-i, --inputInput image (photo, drawing, etc.)
-o, --outputOutput GIF path
-a, --animationAnimation type: idle, wave, bounce, dance (default: idle)
-d, --durationFrame duration in ms (default: 100)
-s, --sizeOutput sprite size in px (default: 128)
-r, --resolutionGeneration resolution: 1K or 2K (default: 1K)
--keep-sheetSave the raw sprite sheet
--keep-framesSave individual frame PNGs
-v, --verboseVerbose output

How It Works

  1. Creates a labeled 4x4 grid template (16 cells)
  2. Sends the template + source image to Gemini in ONE request
  3. AI fills each cell with a pixel art frame following the animation sequence
  4. Frames are extracted from the sheet and assembled into a looping GIF

Single-request generation ensures consistent style across all frames.

Source

https://github.com/Olafs-World/sprite-animator