Converting SVG to PNG16 Mar 2018
SVG diagrams are vector-based graphics. This post shows how to convert them to a pixel-based picture format, like PNG, in the command line.
For this, the rsvg-lib is needed.
It can be easily installed with common package managers.
On macOS, this can be done with:
brew install rsvg-lib
After installation, you convert SVG files with:
rsvg-convert -h [pixel height] in.svg > out.png
Since SVG has no fix resolution, a pixel dimension must be specified.