resvg

Render SVG images to PNG and other formats from the command line.

brewmacoslinux
Try with needOr install directly
Source

About

SVG rendering tool and library

Commands

resvg

Examples

convert SVG file to PNG image$ resvg input.svg output.png
render SVG at a specific width and height$ resvg --width 800 --height 600 input.svg output.png
export SVG with custom DPI scaling$ resvg --dpi 300 input.svg output.png
batch convert multiple SVG files to PNG$ for f in *.svg; do resvg "$f" "${f%.svg}.png"; done
render SVG with zoom and background color$ resvg --zoom 2 --background white input.svg output.png