AnySVG v1.0.0: Persistent Offscreen Chromium & Sharp Compression Pipeline
Zero cold-start desktop rasterization, 2MB URL limit bypass, 16,384px GPU texture clamping, and custom privileged protocol
What's New in v1.0.0
AnySVG v1.0.0 is a studio-grade vector rasterizer built to overcome the severe limitations of standard command-line converters (librsvg, ImageMagick, Inkscape CLI) when processing modern web SVGs.
Key Architectural Innovations
-
Persistent Offscreen Chromium Rasterizer: Eliminates the 2–4s process spawn overhead of headless Puppeteer/Playwright instances by keeping a hidden, pre-warmed
BrowserWindow(offscreen: true) active across the entire application lifecycle. -
2MB URL Limit Bypass (Disk-Thunking): Embedding complex 10MB+ Figma exports into
data:URLs causes Chromium to crash withERR_INVALID_URL. AnySVG dynamically generates a temporary disk wrapper and streams it vialoadFile(), unlinking immediately after frame capture. -
Proportional 16,384px GPU Clamping: High-DPI 4x and 8x exports often exceed the GPU hardware texture allocation ceiling. AnySVG calculates aspect ratios and clamps dimensions proportionally to 16,384px, preventing black-screen render crashes.
-
Secondary Sharp libvips Compression Pipeline: Raw 32-bit RGBA frame buffers pass through a secondary Sharp pipeline supporting Level 9 Deflate with adaptive row filtering, 8-bit palette quantization, and MozJPEG encoding.
-
Privileged
anysvg://Protocol: Custom streaming protocol registered with CORS and CSP bypass for instant local SVG canvas rendering. -
Universal Desktop Packaging: Configured universal Apple Silicon (
arm64) and Intel (x64) DMGs alongside Windows NSIS installers.