Page 1 of 1

Convert file.svg with image link gives blank image

Posted: 2015-04-22T09:17:35-07:00
by JigokuArch
Hi,
I'm trying to convert a svg file to a png file with the convert command, but it doesn't display the image link in the png file. But i can get it working by adding "msvg:" before the svg file name. Does someone knows how to make it work without the "msvg:" part?

Not working command :

Code: Select all

convert file.svg file.png
Working command :

Code: Select all

convert msvg:file.svg file.png
SVG file :

Code: Select all

<?xml version="1.0"?>
<svg id="svg" width="1024" height="1024" preserveAspectRatio="xMinYMin">
    <image id="svg-image" x="0" y="0" width="1024" height="1024" product_id="4" xlink:href="coeur.png">
    </image>
    <rect x="10" y="10" width="80" height="80" fill="red"/>
</svg>

Re: Convert file.svg with image link gives blank image

Posted: 2015-04-22T12:33:48-07:00
by fmw42
You must have IM compiled with some SVG delegate. MSVG is the IM internal one. The others are RSVG or Inkscape.

What do you get from

Code: Select all

convert -list format
for the lines regarding SVG