@gehdoc/svg-to-video 0.32.1 → 0.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/src/index.js +1 -1
- package/package.json +4 -2
- package/skills/svg-to-video/SKILL.md +2 -2
package/README.md
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
[](https://huggingface.co/spaces/GehDoc/svg-to-video-mcp)
|
|
14
14
|
[](https://gehdoc.github.io/svg-to-video/llms.txt)
|
|
15
15
|
|
|
16
|
-
A high-fidelity tool to transform your CSS-animated SVGs into high-quality videos (MP4, WebM, MKV, MOV) or lightweight animated formats (aPNG, GIF) with perfect alpha-channel transparency directly in your browser or via CLI/MCP server.
|
|
16
|
+
A high-fidelity tool to transform your CSS- and SMIL-animated SVGs into high-quality videos (MP4, WebM, MKV, MOV) or lightweight animated formats (aPNG, GIF) with perfect alpha-channel transparency directly in your browser or via CLI/MCP server.
|
|
17
17
|
|
|
18
18
|
<div align="center">
|
|
19
19
|
<a href="https://gehdoc.github.io/svg-to-video/"><img src="https://gehdoc.github.io/svg-to-video/assets/demo.gif" width="800" alt="SVG to Video Demo"></a>
|
|
@@ -26,7 +26,7 @@ A high-fidelity tool to transform your CSS-animated SVGs into high-quality video
|
|
|
26
26
|
|
|
27
27
|
- **Transparent Backgrounds**: Export your animations with a full alpha channel using **WebM or aPNG**, and optimized indexed transparency with **GIF89a**. Perfect for overlays in video editing tools or web use.
|
|
28
28
|
- **Privacy-First**: The Web Studio runs entirely in your browser—your SVG files never leave your computer.
|
|
29
|
-
- **Frame-Accurate**: Our engine scrubs the **Web Animations API**, ensuring every frame is captured exactly as rendered.
|
|
29
|
+
- **Frame-Accurate**: Our engine scrubs both the **Web Animations API** and native **SVG SMIL**, ensuring every frame is captured exactly as rendered.
|
|
30
30
|
- **AI Agent Native**: Native **Model Context Protocol (MCP)** server and **Agent Skill (`SKILL.md`)** support indexed on the official [MCP Registry](https://registry.modelcontextprotocol.io/) (`mcp.json`) and hosted live on [HuggingFace Spaces](https://huggingface.co/spaces/GehDoc/svg-to-video-mcp).
|
|
31
31
|
- **Universal Animated Formats**: Beyond video, generate lightweight **Animated PNGs (aPNG)** and **GIFs** perfect for documentation, Slack, or GitHub, with full control over background transparency.
|
|
32
32
|
- **Copy to Clipboard**: Instant export to **Base64 Data URL**—copy your video and embed it directly into your HTML, CSS, or JS code without manual downloads. Perfect for rapid prototyping and developers.
|
|
@@ -55,7 +55,7 @@ Our **Web Studio** is a serverless, client-side rendering tool. It runs entirely
|
|
|
55
55
|
|
|
56
56
|
> **Privacy Note**: We use [Umami Analytics](https://umami.is/) to collect anonymous usage data across our Web Studio, CLI, and MCP server interfaces (e.g., number of conversions and format usage) to help us improve the tool. This tracking is cookie-less, respects standard "Do Not Track" settings (set the `DO_NOT_TRACK=1` environment variable to opt out), and never collects personal information or SVG contents. See **[docs/ANALYTICS.md](./docs/ANALYTICS.md)** for details.
|
|
57
57
|
|
|
58
|
-
Explore our **[Visual Gallery (Storybook)](https://gehdoc.github.io/svg-to-video/storybook/)** to see how the engine handles complex CSS and fonts.
|
|
58
|
+
Explore our **[Visual Gallery (Storybook)](https://gehdoc.github.io/svg-to-video/storybook/)** to see how the engine handles complex CSS, SMIL, and fonts.
|
|
59
59
|
|
|
60
60
|
### Quick Start
|
|
61
61
|
|
|
@@ -147,7 +147,7 @@ docker pull gehdoc/svg-to-video:latest
|
|
|
147
147
|
|
|
148
148
|
For a deep dive into the rendering engine, algorithms, and infrastructure, see [docs/ARCHITECTURE.md](./docs/ARCHITECTURE.md).
|
|
149
149
|
|
|
150
|
-
The tool works by isolating the SVG, scrubbing the Web Animations API, and capturing frames via WebCodecs or FFmpeg.
|
|
150
|
+
The tool works by isolating the SVG, scrubbing both the Web Animations API and native SVG SMIL DOM, and capturing frames via WebCodecs or FFmpeg.
|
|
151
151
|
|
|
152
152
|
---
|
|
153
153
|
|
package/dist/src/index.js
CHANGED
|
@@ -20,7 +20,7 @@ async function main() {
|
|
|
20
20
|
program
|
|
21
21
|
.name('svg-to-video')
|
|
22
22
|
.version(pkg.version)
|
|
23
|
-
.description(`svg-to-video v${pkg.version} - Render
|
|
23
|
+
.description(`svg-to-video v${pkg.version} - Render an animated SVG (CSS & SMIL) to a high-quality video or animated image (MP4, WebM, MKV, MOV, GIF, aPNG)`)
|
|
24
24
|
.usage('<svgPath> <fps> <outDir> [options]')
|
|
25
25
|
.addHelpText('after', `
|
|
26
26
|
Resources:
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gehdoc/svg-to-video",
|
|
3
3
|
"mcpName": "io.github.GehDoc/svg-to-video",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.33.0",
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "Professional animated SVG to Video (MP4/WebM/MKV/MOV) and Animated Image (aPNG/GIF) converter featuring frame-accurate rendering, CLI automation, Model Context Protocol (MCP) server integration, and a serverless Web Studio.",
|
|
6
|
+
"description": "Professional animated SVG (CSS & SMIL) to Video (MP4/WebM/MKV/MOV) and Animated Image (aPNG/GIF) converter featuring frame-accurate rendering, CLI automation, Model Context Protocol (MCP) server integration, and a serverless Web Studio.",
|
|
7
7
|
"imports": {
|
|
8
8
|
"#shared/*": "./dist/shared/*"
|
|
9
9
|
},
|
|
@@ -25,6 +25,8 @@
|
|
|
25
25
|
"keywords": [
|
|
26
26
|
"animation",
|
|
27
27
|
"css",
|
|
28
|
+
"smil",
|
|
29
|
+
"svg-animation",
|
|
28
30
|
"video",
|
|
29
31
|
"svg",
|
|
30
32
|
"convert",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: svg-to-video
|
|
3
|
-
description: Convert
|
|
3
|
+
description: Convert animated SVG files (CSS & SMIL) or SVG string content into high-quality MP4/WebM/MKV/MOV videos, lightweight animated GIFs, or aPNG images with optional alpha-channel background transparency.
|
|
4
4
|
tools:
|
|
5
5
|
- name: render_svg_to_video
|
|
6
6
|
description: Convert an animated SVG to video or animated image format.
|
|
@@ -16,7 +16,7 @@ This skill enables AI agents to render animated vector graphics (SVGs with CSS a
|
|
|
16
16
|
|
|
17
17
|
1. **Format Export**: Converts SVGs into `mp4`, `webm`, `gif`, `apng`, `mkv`, and `mov`.
|
|
18
18
|
2. **Transparent Backgrounds**: Supports full alpha-channel transparency for `webm`, `gif`, `apng`, and `mov`.
|
|
19
|
-
3. **Auto-Duration Detection**: Automatically detects CSS
|
|
19
|
+
3. **Auto-Duration Detection**: Automatically detects CSS keyframes and SMIL animation loop durations if not specified.
|
|
20
20
|
4. **Resolution Presets & Custom Dimensions**: Supports `original`, `1080p`, `720p`, custom scaling factors (1x-4x), or formatted resolution strings (e.g., `WIDTHxHEIGHT` like `1080x1920`, `1080x1080`).
|
|
21
21
|
|
|
22
22
|
## Usage Guidelines for AI Agents
|