Converting large 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
dmbaturin
Posts: 1
Joined: 2012-11-17T11:34:41-07:00
Authentication code: 6789

Converting large SVG to PNG

Post by dmbaturin »

Hi,
I'm using ImageMagick 6.6.0 on Debian Squeeze. I produced an SVG file with graphviz, but as dataset is very large, the SVG output is about 18MB large as well. Now I want to convert it to PNG.
However I get the following error:

Code: Select all

$ convert ./map.svg -limit memory 0 -limit map 0   ./map.png
convert: memory allocation failed `./map.svg' @ error/svg.c/ReadSVGImage/2825.
convert: option requires an argument `-resize' @ error/convert.c/ConvertImageCommand/2311.
What am I doing wrong and what should I do to reach the goal?
Post Reply