# resvg

> An SVG rendering library

Source: https://talira.ai/catalog/resvg-pvdm4qt0
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [media / images / processing](https://talira.ai/categories/media/images/processing), [languages / rust](https://talira.ai/categories/languages/rust)
- Platforms: macos, linux, windows, web, cli
- Licence: Apache-2.0 OR MIT
- Pricing: Free and open source
- Free tier: yes
- Self-hostable: yes
- Backed by: [Linebender](https://talira.ai/orgs/linebender.md)

resvg renders static SVG files to images, written entirely in Rust with almost no unsafe code. Parsing and rendering are separate: usvg turns an SVG into a simplified tree (resolving CSS, text layout with its own font database and nested images) and resvg rasterises that tree with tiny-skia, so a program can bring its own renderer. It runs as a Rust library, a C library or a CLI, works anywhere Rust compiles including WASM, and has a regression suite of around 1,600 SVG-to-PNG tests. Animations and scripting aren't supported.

## Links

- GitHub: https://github.com/linebender/resvg
- Docs: https://docs.rs/resvg

## Ways to install

### Package managers

- [Homebrew](https://talira.ai/catalog/homebrew-djy17yn9.md): <https://formulae.brew.sh/formula/resvg>[^1]
- [APT](https://talira.ai/catalog/apt-d7essv0z.md): <https://packages.debian.org/stable/resvg>[^2]
- [mise](https://talira.ai/catalog/mise-0axr08xw.md): <https://mise-versions.jdx.dev/tools/resvg>[^3]

## Problems it solves

- generate Open Graph link preview images for every page of my site on the server
- turn an SVG string into a PNG in my Rust backend without shelling out to Inkscape or a headless browser
- render social share cards with our own font so they look the same on every machine
- rasterise SVG icons and logos to PNG at build time
- librsvg pulls in GLib and Cairo and I want a pure Rust SVG renderer
- render SVGs in a WASM app without a browser canvas
- lay out text in an SVG with a font I bundle instead of whatever fonts the server has
- make thumbnails of user-uploaded SVG files safely without running scripts in them
- draw charts as SVG and export them as PNG from a CLI

## Features

- SVG to PNG rendering
- text layout with a bundled font database (fontdb) and variable fonts
- nested SVG and raster images
- separate parser (usvg) and renderer
- C API
- CLI
- WASM support

## Capabilities

- Has a command line tool: plan not known
- Has official SDKs: plan not known

## Trust

Overall: 0.69 out of 1.
Signals: maintenance 1.00, adoption 0.72, momentum 0.47, community 0.81, backing 0.30, extensibility 0.20.

- last commit 8 days ago
- 60 commits in the last 90 days
- latest release v0.50.0 12 days ago
- 4.2k GitHub stars
- 104 contributors
- backed by Linebender

## Alternatives

- [Inkscape](https://talira.ai/catalog/inkscape-7pvjw6yt.md): Draw Freely

## Sources

[^1]: https://formulae.brew.sh/api/formula.json (checked 21 Nov 2026)
[^2]: https://deb.debian.org/debian/dists/stable/main/source/Sources.xz (checked 21 Nov 2026)
[^3]: https://mise-versions.jdx.dev/tools.json (checked 21 Nov 2026)
