Using RSVG to convert svg to non-local image
I have an SVG image as follows that I am trying to convert to PNG:
<?xml version="1.0"?><svgxmlns="http://www.w3.org/2000/svg"xmlns:xlink="http://www.w3.org/1999/xlink"><imagex="0"y="0"width="158"height="158"xlink:href="http://cdn.sstatic.net/stackexchange/img/logos/so/so-icon.png"/></svg>This worked on Ubuntu 10.04, but now 12.04 does not. The reason is because RSVG will no longer load the URL of an image that has no relative path.
This is not an option here - my site generates SVG (so I know it is safe), but this requires images to be uploaded via HTTP.
The image is displayed in Chrome, but not in Imagemagick, Gimp, or (oddly enough) Inkscape.
If this helps, I use Imagemagick via PHP, but RSVG is the delegate for SVG conversion here.
Does anyone have any ideas how to get around this other than recompiling librsvg?
I triedImageMagicksuggestions(RSVG) will not import images into SVG, and it looks suspiciously like this problem:rsvg does not display related images
I found the code that answers here:https://git.gnome.org/browse/librsvg/tree/rsvg-base.c#n2169
I could be wrong, but it looks like they disabled downloads from other URLs, but couldn't re-enable it in recompilation?
No one has answered this question yet.
See similar questions:
or similar: