Need to store image relative path in svg file

Bug #169113 reported by Brunetton
Affects Status Importance Assigned to Milestone

Bug Description

I often need to send svg file to friends. Those files often refers to
images. I always puts needed images on the same folder as refered images.
When saaving svg file, images are refered in an absolute path :

<image ... xlink:href="/home/bruno/image.png" />

 If I send this svg file and all images to my freinds, they won't be able
to see linked images.

 The actual solution is to manually edit the file and change all the href
feilds of <image/> (with vim of course) :

Before :
<image ... xlink:href="/home/bruno/image.png" />

After :
<image ... xlink:href="image.png" />

 I think it would be great to find a GUI solution to present an option
swapping between relative and absolute paths for all images in document
(mabe in the document properties). I don't think it's usefull to have that
option for all images of document. If someone wants a relative path for one
image, he would probably want it for all images in the document.


Bruno Duyé

Tags: importing
Revision history for this message
Buliabyak-users (buliabyak-users) wrote :

Originator: NO

Using latest devel build, I import a PNG image from the same dir as SVG
and I get relative path in xlink:href. If your results are different,
please detail the steps to get absolute hrefs.

Revision history for this message
Fisherman (literatur-im-lift) wrote :

It is very right. In effect i think 99% of the people like relative paths, so that they would be able to send them in a .zip file together with all the images.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.