Mobile app version of vmapp.org
Login or Join
Sent7350415

: How to link images relatively in Inkscape? I would like to make relative links to pictures in an Inkscape file. So when I move the project files (images and the Inkscape master), I wouldn't

@Sent7350415

Posted in: #Images #Inkscape

I would like to make relative links to pictures in an Inkscape file. So when I move the project files (images and the Inkscape master), I wouldn't have to relink the images.

What is the proper way to do this?

10.03% popularity Vote Up Vote Down


Login to follow query

More posts by @Sent7350415

3 Comments

Sorted by latest first Latest Oldest Best

 

@Cooney243

If you are not familiar with the XML editor it might be more convenient to just right-click on the figure --> Image Properties --> URL: "../my_relative_path/my_figure.jpg".

10% popularity Vote Up Vote Down


 

@Nimeshi706

../stuff/file.ext indeed should work.

For a full guide see here: libregraphicsworld.org/blog/entry/inkscape-embedding-or-linking ;-)

10% popularity Vote Up Vote Down


 

@Welton168

Insert linked image
Open XML editor and select the image
Change the xlink:href attribute to be relative instead of absolute. For example, if your image is in the same directory as your svg file, then the value for xlink:href would look something like this: "./MyPic.jpg"


Example diff:

< xlink:href="file:///home/foouser/svg/20150721_210652-0.JPG"
---
> xlink:href="20150721_210652-0.JPG"


After saving, closing, and moving your svg file along with your image file, Inkscape should still display the image in your file. Also note that after re-opening, Inkscape will keep the xlink:href attribute, but also maintain a separate attribute called sodipodi:absref that will store the absolute location of the image. I've found that this doesn't matter -- you can still move your files around and Inkscape will refer to the xlink:href attribute to find your image.

Tested on Inkscape 0.48

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme