Inkscape.org
Beyond the Basics Linked image in SVG using URL
  1. #1
    pos-1 pos-1 @pos-1

    Hi all,

    I'm using Inkscape with ImageMagick to convert some SVG files to PNG's in my web application.

    A problem we have encountered is trying to convert SVG files which use a linked image in them (i.e. using 'xlink:href') which is a URL rather than a path on the machine running the convert command, and gives the "Linked image not found" error rather than rendering the linked image.

    I'm doubtful this is going to be possible but just wanted to check before I find a workaround for this which will involve using a server path to the image.

  2. #2
    Martin Owens Martin Owens @doctormo🌹🧀

    There isn't an internal to Inkscape way to do this and we've made the decision not to support this kind of external linking for security reasons.

    You may beable to put together a python extension though to resolve external urls.

Inkscape Inkscape.org Inkscape Forum Beyond the Basics Linked image in SVG using URL