resvg-js is a high-performance SVG rendering and conversion toolkit that enables developers to process vector graphics efficiently using a Rust-powered engine exposed through JavaScript and WebAssembly bindings. It is built on top of the resvg rendering library, which is designed to produce highly accurate and standards-compliant SVG outputs while maintaining excellent performance and minimal dependencies. The library allows developers to convert SVG files into raster formats such as PNG, as well as manipulate and analyze SVG content programmatically. It supports both Node.js environments through native bindings and browser environments through a pure WebAssembly implementation, making it highly portable across platforms. resvg-js also includes advanced capabilities such as font handling, bounding box calculations, cropping, and scaling, enabling precise control over rendering output.
Features
- High-performance SVG rendering powered by a Rust-based engine
- Supports conversion from SVG to PNG with scaling and cropping
- Works in both Node.js and browser environments via WebAssembly
- Handles system and custom fonts for accurate text rendering
- Provides utilities for bounding box calculation and layout adjustments
- Cross-platform support with precompiled binaries and minimal setup