Languages
[Edit]
EN

Inkscape - batch export / convert svg graphics to png from bash console

7 points
Created by:
Roseanne-Read
1365

Using Inkscape and Bash on Microsoft Windows it is possible to export many *.svg graphics to *.png in the following way.

 

Note: in the below scripts we use inkscape command described in this article.

Note: to know how to install Bash under Windows go to this article.

1. 1x1 size radio export script example

Edit

export-1x1.sh file:

Notes:

  • export-1x1.sh file should be placed in the *.svg graphics directory,
  • program variable should be updated with actual inkscape.exe path.

Running:

Note: 40 means the size of output graphics will be 40x40 px.

 

2. Export script to custom size example

Edit

export.sh file:

Running:

Note: 40 50 means the size of output graphics will be 40x50 px.

References

Edit
  1. Bash - export *.svg to *.png under Windows 
1
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.

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