The project's README from github.com/leeyeel/Sketch2Motion. As one markdown file: README.md.

| Input image | Colorful drawing animation |
|---|---|
![]() |
![]() |
Generate it with the color pipeline:
python sketch2svg_color.py input.png 16
python render_color.py input_color.svg --duration 5.0 --delay 0.05 --scale 3.55 --output-file output
The color pipeline quantizes the image into up to 16 colors, traces each color layer separately with potrace, and renders a colored drawing animation with Manim. Generated SVGs include their own background color, so they can be moved or shared without a companion file.
Convert a static image into a smooth drawing animation using Manim.
This project takes a doodle, photo, or sketch, converts it into an SVG vector graphic, and renders it into an animated MP4 video with Manim.
It also prepends the last frame to the start of the video, creating a short pause for a more polished look.
linear, smooth, there_and_back, wiggle)1920x1080) or portrait 9:16 (1080x1920)git clone https://github.com/yourusername/sketch-to-motion.git
cd Sketch2Motion
Make sure you have Python 3.9+ installed.
pip install -r requirements.txt
Key dependencies:
Install Manim:
Install ffmpeg:
bin folder to PATHbrew install ffmpegsudo apt install ffmpeg or use your package managerInstall Potrace:
brew install potracesudo apt install potrace or use your package managerpython app.py
Access the app at:
http://127.0.0.1:7880