Scale an SVG as a vector graphics program would

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
dragoncat
Posts: 1
Joined: 2011-01-28T09:59:18-07:00
Authentication code: 8675308

Scale an SVG as a vector graphics program would

Post by dragoncat »

I want to scale an SVG file/object. In Inkscape, this would be done by clicking on the object, choosing object-->transform-->scale-->preserve ratio-->(enter scale) then file-->properties-->resize canvas to fit object. As you can see, that's a lot of work for an operation that should be really simple. But typing

convert -scale 300% image.svg image2.svg

while it seems to work, simply creates a maniacal monster that threatens to blow up my computer.

In short, the file fails to open at all in anything I have yet tried. It's no innocent SVG, by the looks of it.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Scale an SVG as a vector graphics program would

Post by fmw42 »

svg format is vector and probably controlled more by -density than -scale

see http://www.imagemagick.org/Usage/formats/#vector
Post Reply