Convert file.svg with image link gives blank image

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
JigokuArch
Posts: 1
Joined: 2015-04-22T09:07:00-07:00
Authentication code: 6789

Convert file.svg with image link gives blank image

Post 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>
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

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

Post 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
Post Reply