Languages
[Edit]
EN

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

6 points
Created by:
Khloe-Kaiser
398

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 apt-get install inkscape

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.

❤️💻 🙂

Join