Convert SVG file to multiple different size PNG files

后端 未结 7 1019
轻奢々
轻奢々 2021-01-30 09:10

I have a logo image in SVG format and I am wondering if theres a way to generate multiple different sized png files.

Eg, I set 20 different width and height and it gener

7条回答
  •  北恋
    北恋 (楼主)
    2021-01-30 09:54

    The accepted answer is fine. There is an official help on options available. Also basic Shell commands will do nicely here:

    for x in 10 100 200 ; do inkscape --export-png logo${x}.png -w ${x} logo.svg ; done
    

    On the command line in windows use this line from @avalancha in the comments

    for %x in (100 200 300) ; do inkscape --export-png logo%x.png -w %x logo.svg ; done
    

提交回复
热议问题