
I've hit two issues
1) There appears to be a bug in sp_relative_path_from_path that chokes when you go up above the current directory. Like if you try to reference and image you'd expect to end up "../../other/thing.png"
2) Image paths currently are 'fixed' to be relative when you save svg.
For problem #1 I know what to do. However, for problem #2 I'd want to confirm desired behavior. I was thinking that the proper thing would be to fixup to relative paths whenever a file is first imported. Does this sound reasonable?

On Fri, 29 Oct 2004 09:36:53 -0700, Jon A. Cruz <jon@...18...> wrote:
- Image paths currently are 'fixed' to be relative when you save svg.
For problem #1 I know what to do. However, for problem #2 I'd want to confirm desired behavior. I was thinking that the proper thing would be to fixup to relative paths whenever a file is first imported. Does this sound reasonable?
I think I can guess why it is done on save. You can save a document to different places, and the relative paths from each one will be different. Therefore it stores absolute path while in memory and only converts it to relative on save (and perhaps converts it back to absolute on load). Maybe there may be a better way to fo this, but at least that makes sense to me.
There's also the sodipodi:absref attribute. Where is it used, if at all? Maybe it would be better to do the same thing as now (absolute in memory, relative on save) but use only the sodipodi:absref for storing the absolute path?
participants (2)
-
bulia byak
-
Jon A. Cruz