using raster images and linking

Post questions on how to use or achieve an effect in Inkscape.
lorenzosu
Posts: 3
Joined: Wed Mar 19, 2008 9:35 pm

using raster images and linking

Postby lorenzosu » Thu Mar 20, 2008 7:32 pm

I have been doing some work which required importing a raster image and sent it to someone else to discover that the "import" of th image is actually a "link" through the <image> tag in the SVG... which I should have expected being SVG basically XML... :oops:
Examining the (plain) SVG I noticed that when importing rasters, Inkscape (Windows version) will put the absolute path if it is different from the one the SVG is saved to, and a relative if it is in the same folder. Examples:

Code: Select all

    <image
       xlink:href="C:\Images\myimage.png"
       ...
/>


Code: Select all

    <image
       xlink:href="myimage.png"
       ...


So in case one must share, the best is probably to create a work folder with everything and then just zip and send.
I was wondering if there is a way to actually to actually "embed" (encapsulate?) the raster.

Thanks and kindest regards,
Lorenzo

User avatar
sas
Posts: 404
Joined: Sat Oct 06, 2007 5:42 am

Re: using raster images and linking

Postby sas » Thu Mar 20, 2008 8:28 pm

Effects -> Images -> Embed All Images

lorenzosu
Posts: 3
Joined: Wed Mar 19, 2008 9:35 pm

Re: using raster images and linking

Postby lorenzosu » Thu Mar 20, 2008 8:51 pm

great! Thanks sas, I had missed that :)

Zajoman
Posts: 1
Joined: Wed Feb 15, 2012 11:51 pm

Re: using raster images and linking

Postby Zajoman » Thu Feb 16, 2012 12:04 am

I have a folder in which all files, both the main SVG and all PNGs, are and when I import a PNG into the SVG, it is still referenced by an absolute path rather than relative. I would really prefer it being relative. Is it possible? How come your SVG saves the image links as relative?


Return to “Help with using Inkscape”