Bash - export *.svg to *.png under Windows

6 points
Created by:

In this short article, we are going to look at how quickly export some *.svg file to *.png under Bash using Inkscape.

Quick solution:

"/C/Program Files/Inkscape/bin/inkscape.exe" --export-type="png" --export-filename="icon-16x16.png" -w 16 -h 16 "icon.svg"


or (in older Inkscape):

"/C/Program Files/Inkscape/inkscape.exe" -z -e "icon-16x16.png" -w 16 -h 16 "icon.svg"

Where: -w 16 -h 16 should be replaced with desired width and height.


Inkscape installation

Download installer from:

Under Debian run sudo apt-get install inkscape


Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂