SVG -> MVG convert

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
reubenhwk

SVG -> MVG convert

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: SVG -> MVG convert

Post 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
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply