Convert SVG to PNG

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
etrader
Posts: 13
Joined: 2012-09-29T06:53:04-07:00
Authentication code: 67789

Convert SVG to PNG

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Convert SVG to PNG

Post 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?"
snibgo's IM pages: im.snibgo.com
Post Reply