@gehdoc/svg-to-video 0.35.0 → 0.36.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
CHANGED
|
@@ -28,7 +28,7 @@ A high-fidelity tool to transform your CSS- and SMIL-animated SVGs into high-qua
|
|
|
28
28
|
- **Privacy-First**: The Web Studio runs entirely in your browser—your SVG files never leave your computer.
|
|
29
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
|
-
- **Universal Animated Formats**: Beyond video, generate lightweight **Animated PNGs (aPNG)** and **GIFs**
|
|
31
|
+
- **Universal Animated Formats**: Beyond video, generate lightweight **Animated PNGs (aPNG)** and **GIFs** with deterministic 8x8 Bayer ordered dithering to eliminate temporal fluttering on animated gradients, 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.
|
|
33
33
|
- **Metadata Injection**: Support for custom titles and comments across video (MP4, WebM, MKV, MOV) and animated image (aPNG, GIF) formats.
|
|
34
34
|
- **Versatile**: Whether you need an accessible [Web Studio](#-web-studio) for quick conversions or a powerful [CLI tool](#-cli--docker-tool) for batch automation and CI/CD pipelines, this project has you covered.
|
|
@@ -49,7 +49,7 @@ Choose the entry point that matches your needs:
|
|
|
49
49
|
|
|
50
50
|
**[🚀 Try the Web Studio](https://gehdoc.github.io/svg-to-video/)**
|
|
51
51
|
|
|
52
|
-
Our **Web Studio** is a serverless, client-side rendering tool. It runs entirely in your browser using **WebCodecs
|
|
52
|
+
Our **Web Studio** is a serverless, client-side rendering tool. It runs entirely in your browser using **WebCodecs** and custom browser encoders—featuring 16-bit `rgb565` quantization and 8x8 Bayer dithering for flicker-free GIFs—ensuring your SVG files never leave your computer for absolute privacy. The interface is optimized for high-productivity on screens starting from **720p resolution**.
|
|
53
53
|
|
|
54
54
|
> **Automated Demo**: The demo video at the top of this README is automatically generated and updated by our CI/CD pipeline using Playwright and Driver.js, ensuring it always reflects the latest UI changes.
|
|
55
55
|
|
|
@@ -38,10 +38,10 @@ export class GifFormatGenerator extends BaseCLIFormatGenerator {
|
|
|
38
38
|
const reserveTrans = transparent ? 1 : 0;
|
|
39
39
|
let filterComplex;
|
|
40
40
|
if (filters.length > 0) {
|
|
41
|
-
filterComplex = `${filters.join(',')},split[a][b];[a]palettegen=reserve_transparent=${reserveTrans}[p];[b][p]paletteuse`;
|
|
41
|
+
filterComplex = `${filters.join(',')},split[a][b];[a]palettegen=reserve_transparent=${reserveTrans}[p];[b][p]paletteuse=dither=bayer:bayer_scale=3`;
|
|
42
42
|
}
|
|
43
43
|
else {
|
|
44
|
-
filterComplex = `split[a][b];[a]palettegen=reserve_transparent=${reserveTrans}[p];[b][p]paletteuse`;
|
|
44
|
+
filterComplex = `split[a][b];[a]palettegen=reserve_transparent=${reserveTrans}[p];[b][p]paletteuse=dither=bayer:bayer_scale=3`;
|
|
45
45
|
}
|
|
46
46
|
args.push('-filter_complex', filterComplex);
|
|
47
47
|
args.push('-loop', '0');
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gehdoc/svg-to-video",
|
|
3
3
|
"mcpName": "io.github.GehDoc/svg-to-video",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.36.0",
|
|
5
5
|
"type": "module",
|
|
6
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": {
|