Resvg
An open-source library that renders SVG images into bitmap images such as PNG.
In more detail
It is written in Rust and also compiled to WebAssembly so it can run in JavaScript runtimes. ImageResponse passes Satori's SVG output to it to produce the final PNG file.
Related terms
- Satori — An open-source Vercel library that converts HTML and CSS written as JSX into an SVG image.
- PNG — Portable Network Graphics: a lossless image format that supports transparency.
- SVG — Scalable Vector Graphics, an XML-based image format that describes shapes with coordinates so it stays sharp at any size.
Taught in
- Metadata API: Dynamic OpenGraph & Head Management — Next.js 15 & Modern App Router Architecture