Languages
[Edit]
EN

Inkscape - how to convert svg to png in console?

13 points
Created by:
TylerH
448

Using Inkscape and Bash it is possible to *.svg file to *.png in the following way.

Quick solution:

 

1.  Inkscape and Bash console under Microsoft Windows example

Edit

When we have installed Inkscape under Windows we are able to use the command line to make some SVG files conversion,

1.1. With the exact size

Edit

or:

Note: -w 100 -h 40 means the size of output graphics will be 100x40 px.

Example output:

1.2. With keeping ratio and scaling to width

Edit

Using this approach height will be computed automatically to keep the original width/height proportion.

or:

Example output:

1.3. With keeping ratio and scaling to height

Edit

Using this approach width will be computed automatically to keep the original width/height proportion.

or:

Example output:

See also

Edit
  1. Inkscape - how to convert svg to png? 
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