EN
Bash - export *.svg to *.png under Windows
6
points
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:
- current version
- https://inkscape.org/release/inkscape-1.1/
- https://inkscape.org/release/inkscape-1.0/ (older Inkscape)
Under Debian run sudo apt-get install inkscape