Page 1 of 1

Scaling an SVG

Posted: 2013-08-27T14:14:29-07:00
by mcguinnessdr
Hello, I need to scale an SVG file so that when I convert it to a PNG it is the best quality. I've tried "resize", "size", and "scale", but all they do is change the size of the image, while leaving the curves at the same size. If I try converting from this the actual lines will be tiny in the top-left corner. Is there a way I can scale the points along with the image size? Thanks for any help!

Re: Scaling an SVG

Posted: 2013-08-27T14:31:15-07:00
by fmw42
Use -density on vector files to scale them from 72 dpi. If you use 288 that will be 4x scaling

convert -density 288 image.svg image.png

If you want to keep the size the same but get better quality then do

convert -density 288 image.svg -resize 25% image.png

Re: Scaling an SVG

Posted: 2013-08-27T14:49:15-07:00
by mcguinnessdr
Thanks, just what I was looking for!