Page 1 of 1

Convert SVG to PNG

Posted: 2018-02-20T05:51:56-07:00
by etrader
I try to convert a series of SVG files to PNG with mogrify as

Code: Select all

mogrify -format png *.svg
but the images are cropped to include the visible part only. How can I convert SVG to PNG with the original size?

I do not want to use the sizeable feature of the vector. Instead, I just want to maintain the original size exactly.

Re: Convert SVG to PNG

Posted: 2018-02-20T07:07:20-07:00
by snibgo
SVG are vector image files, that can be rasterised to any size. An SVG might contain dimensions in pixels, but most don't. Even when it does, that is mere a "suggestion".

So, what do you mean by, "How can I convert SVG to PNG with the original size?"