Page 1 of 1

Putting the 'S' in SVG

Posted: 2007-02-23T15:37:16-07:00
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

Re: Putting the 'S' in SVG

Posted: 2007-02-23T15:49:48-07:00
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