CairoSVG icon indicating copy to clipboard operation
CairoSVG copied to clipboard

Specific xlink href baseUrl

Open filippo-mazza opened this issue 8 years ago • 1 comments

If I well understood, when converting a svg to png, the attribute <image ... xlink:href> is parsed for the contained url. However in some cases this url is relative; if I try to convert such kind of images on my machine when the svg image was downloaded from the internet, the python library looks for the link and then looks for the resource in the current folder, not in the remote baseUrl. Is it possible to specify this last somehow ?

Thanks in advance for the information

filippo-mazza avatar Oct 31 '17 11:10 filippo-mazza

We should add something like what's been added to WeasyPrint in Kozea/WeasyPrint#532 and Kozea/WeasyPrint#437.

liZe avatar Jan 03 '18 14:01 liZe