I'me trying to use ImageMagick to convert SVG files to PNG.
The SVG file is as follows:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1">
<image xlink:href="picture.jpg" width="200" height="200"/>
</svg>
No matter what method I use the final result doesn't include the image. Other SVG elements have rendered correctly.
I've tried:
convert test.svg test.png
rsvg-convert -o test.png test.svg
I've tried changing the image path to use file:///, absolute paths, remote urls, and url encoded variations of each. I've also formatted my file with and without a doctype.
I'm using librsvg 2.36.3 and ImageMagick 6.8.0-10 I have been able to use phantomjs to convert them but it seems like overkill for this one task.
Please help!