How to convert a SVG to a PNG with ImageMagick?

前端 未结 18 2081
一个人的身影
一个人的身影 2020-11-28 17:04

I have a SVG file that has a defined size of 16x16. When I use ImageMagick\'s convert program to convert it into a PNG, then I get a 16x16 pixel PNG which is way too small:<

18条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-28 17:48

    On Linux with Inkscape 1.0 to convert from svg to png need to use

    inkscape -w 1024 -h 1024 input.svg --export-file output.png
    

    not

    inkscape -w 1024 -h 1024 input.svg --export-filename output.png
    

提交回复
热议问题