I am 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 which method I use, the end result does not include the image. Other SVG elements are displayed correctly.
I tried:
convert test.svg test.png rsvg-convert -o test.png test.svg
I tried changing the image path to use the file: ///, absolute paths, remote URLs and URL codes encoded in each of them. I also formatted my file with and without doctype.
I use librsvg 2.36.3 and ImageMagick 6.8.0-10 I was able to use phantomjs to convert them, but seems redundant for this task.
Please, help!
source share