How to convert a SVG to a PNG with ImageMagick?

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

    On macOS using brew, using librsvg directly works well

    brew install librsvg
    rsvg-convert test.svg -o test.png
    

    Many options are available via rsvg-convert --help

提交回复
热议问题