SVG to Video Agent Skill
This skill enables AI agents to render animated vector graphics (SVGs with CSS animations, SMIL keyframes, or Web Animations API) into binary video and image assets.
Capabilities
- Format Export: Converts SVGs into
mp4,webm,gif,apng,mkv, andmov. - Transparent Backgrounds: Supports full alpha-channel transparency for
webm,gif,apng, andmov. - Auto-Duration Detection: Automatically detects CSS keyframe and animation loop durations if not specified.
- Resolution Presets: Supports
original,1080p,720p, and custom scaling factors (1x-4x).
Usage Guidelines for AI Agents
When asked to generate a video or GIF from an SVG animation:
Option A: Via MCP Tools (Recommended):
- Call
render_svg_to_videodirectly passing eithersvgContent(raw XML string) orsvgFilePath. - Set
transparent: trueandformat: "webm"orformat: "gif"if a transparent overlay is requested.
- Call
Option B: Via CLI Command:
npx svg-to-video input.svg 60 ./out-dir -d 5 --format gif --transparent --jsonOption C: Via Docker:
docker run -i --rm -v $(pwd):/app/data gehdoc/svg-to-video mcp