Last active
May 6, 2019 15:08
-
-
Save idleuncle/01b9a3dfd7e056b7f90f3bbd6d3e395d to your computer and use it in GitHub Desktop.
svg图片转换为png格式
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-image-magick | |
$ inkscape -z -e test.png -w 1024 -h 1024 test.svg | |
npm install svgexport -g | |
svgexport input.svg output.png 64x | |
svgexport input.svg output.png 1024:1024 | |
convert -density 1200 -resize 200x200 source.svg target.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment