Page 1 of 1

SVG -> MVG convert

Posted: 2010-08-15T19:20:14-07:00
by reubenhwk
Is there a way to convert SVG to MVG images? The obvious way...

$ convert test.svg output.mvg

..doesn't work. It seems the SVG is converted to pixels first, then when going to MVG ImageMagick complains saying "there's no vectors."

I see in ReadSVGImage, a tempfile is outputted with the MVG commands to render the image. The code is compiled out with...

#if MAGICKCORE_XML_DELEGATE

...but I see now way to activate that code.

Any help would be appreciated.

Re: SVG -> MVG convert

Posted: 2010-08-15T20:42:28-07:00
by anthony
To get MVG you must ensure that the MSVG decoder is used and not RSVG decoder.

So try this...

Code: Select all

convert msvg:test.svg output.mvg
See SVG handling in IM Examples
http://www.imagemagick.org/Usage/draw/#svg