← Back

svg to png inkscape cli

2025-12-13

#
# Render an SVG to a PNG using the Inkscape CLI.
#
# Normally I'd try to use ImageMagick, but it doesn't seem
# to have a great SVG rendering engine. I installed Inkscape
# via Homebrew, and it seems to work a lot better.
#
# brew install --cask inkscape
#
# Docs on using Inkscape via the command line:
# https://wiki.inkscape.org/wiki/Using_the_Command_Line
#
inkscape --export-background=FFFFFF --export-dpi=300 "2025-12-12-qr-code-music-player.svg" -o "2025-12-12-qr-code-music-player.png"