Expand description
SVG-to-raster conversion using resvg + tiny-skia.
Converts an SVG string into a tiny_skia::Pixmap which can then be
encoded to PNG (via tiny-skia’s built-in encoder), JPEG, or BMP
(via the image crate).
Functions§
- pixmap_
to_ bmp - Encode a pixmap as BMP bytes.
- pixmap_
to_ jpeg - Encode a pixmap as JPEG bytes.
- svg_
to_ raster - Rasterize an SVG string into a pixel buffer.