How to convert a SVG to a PNG with ImageMagick?

前端 未结 18 2084
一个人的身影
一个人的身影 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:56

    why don't you give a try to inkscape command line, this is my bat file to convert all svg in this dir to png:

    FOR %%x IN (*.svg) DO C:\Ink\App\Inkscape\inkscape.exe %%x -z --export-dpi=500 --export-area-drawing --export-png="%%~nx.png"

提交回复
热议问题