Commit 036a066d authored by Rafael Monnerat's avatar Rafael Monnerat 👓
Browse files

Fix SVG to PNG conversion when a xlink:href uses a URL

Transform the URL into Data URI in order to avoid ImageMagick and
rsvg-convert limitations. This API should be dropped as soon those external
tools can handle remote URLs (ie.: http, https ...) into SVG definitions.

It was included defensive code and a lot of tests to prevent unexpected
outcomes, like raise ConversionError if the download failures and do
not parse empty content.
parent 48ee69f7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment