Putting the 'S' in SVG

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
DuckWizard

Putting the 'S' in SVG

Post by DuckWizard »

I am trying to get an SVG to rasterize at a specific DPI. For a sample SVG, I am using the Mozilla Mascot from Wikipedia (http://en.wikipedia.org/wiki/Image:Mozilla_Mascot.svg). I even removed the height, width, and viewbox attributes from the SVG document.

However, when I do this:

convert -size 2000x2000 Mozilla_Mascot.svg test.png

The mascot itself remains the same pixel dimension, with extra whitespace around it. Any idea how I get it to SCALE the SVG up to the specified size? That's what Scalable Vector Graphics are for, right? :-P

Thanks,
Jeremy
DuckWizard

Re: Putting the 'S' in SVG

Post by DuckWizard »

I found the solution by browsing back on the board (Searching for 'SVG' didn't work, because all search terms must have at least 4 characters. D'oh!).

Use -density instead of -size. Right there in the man page *slaps forhead*

Jeremy
Post Reply