# linebender/resvg

An SVG rendering library.

Repository: https://github.com/linebender/resvg
Canonical: https://ross.abutalabs.com/products/resvg
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: svg, render
Last push: 2026-08-16T08:16:03+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 72, longevity 100
- inputs: {"age_days": 3597, "days_push": 17, "days_rel": 31, "gap_med": 100.0, "n_releases_24m": 7}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4034, forks 337 (observed 2026-08-28T04:08:32.856386+00:00)

## What it is
resvg is a fast, portable SVG rendering library written entirely in safe Rust, usable as a Rust library, C library, or CLI application for converting static SVG files to PNG. It aims for full SVG 1.1 spec coverage with a ~1600-test regression suite and separates SVG parsing (usvg) from rendering.

## Use cases
- convert svg files to png
- render svg images server-side
- embed svg rendering in a rust application
- render svg thumbnails in a batch pipeline
- render svg in webassembly
- validate svg rendering correctness against a test suite
- build a custom svg renderer on top of a parsed svg tree

## When to choose
- you need correct, spec-compliant rendering of static SVG without a browser
- memory safety matters - it's pure Rust with almost no unsafe code
- you need a small, dependency-free portable binary including WASM support
- you want to preprocess/simplify SVG (usvg) and render it with your own 2D engine

## When to avoid
- you need animated or scriptable (dynamic) SVG support
- you need a full browser-grade SVG engine with CSS interactions
- you need SVG editing or authoring rather than rendering

## Facets
- artifact type: library
- maturity: stable
- function: image-processing, graphics, parser, cli
- domain: graphics, image-processing, web-development, developer-tools
- platform: cross-platform, rust, cli, wasm
- tags: svg, svg-to-png, rasterization, usvg, memory-safe, no-unsafe

## Member repositories
- linebender/resvg (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:32.856386+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:49.067896+00:00, confidence not recorded.
  - readme: https://github.com/linebender/resvg (fetched 2026-08-28T04:08:32.856386+00:00, sha 54f932bd8e25)
  - registry_crates: https://crates.io/api/v1/crates/resvg (fetched 2026-08-29T09:16:21.020318+00:00, sha 990a1a0d132a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
