How to convert a SVG to a PNG with ImageMagick?

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

    The top answer by @808sound did not work for me. I wanted to resize

    and got

    So instead I opened up Inkscape, then went to File, Export as PNG fileand a GUI box popped up that allowed me to set the exact dimensions I needed.

    Version on Ubuntu 16.04 Linux: Inkscape 0.91 (September 2016)

    (This image is from Kenney.nl's asset packs by the way)

提交回复
热议问题