Convert SVG file to multiple different size PNG files

后端 未结 7 1020
轻奢々
轻奢々 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 10:03

    I used the below command to create the icons for Angular PWA.

    First "cd" into the inkscape installation folder before running the below command in windows command prompt.

    for %x in (72 96 128 144 152 192 384 512) ; do inkscape --export-filename=C:\temp\icons\icon-%xx%x.png -w %x -h %x "{filePath}\{fileName}.svg"
    

提交回复
热议问题