Re: [Inkscape-devel] bug? 'embed all images' can't find png files in local directory
This is fixed in the latest SVN (16429), so I marked the bug closed.
My test file now fails for a related, but slightly different reason :). I opened a new bug for that (1826197) and posted a patch in the bug tracker...
Both of these bugs were triggered by the use of relative paths in an SVG file without a backup sodipodi:absref tag to indicate where the linked image file can be found. I'm not sure if you all keep a suite of test files, but if so this one seems like it could be a useful addition...
Thanks! Tom
On 11/4/07, Tom Davidson <tjd@...1007...> wrote:
OK, I think I understand what's causing the bug. When I run embedimage.py on the command-line against the original test file, it works fine. But it doesn't work against the temporary file that inkscape is writing to /tmp and handing off to the extension.
Here is a diff of the two files:
$ diff /tmp/ink_ext_GOTW0T ~/tmpsvg/embedtest_simple.svg 19,20c19,20 < sodipodi:docname="ink_ext_GOTW0T"
< sodipodi:docbase="/tmp"
sodipodi:docname="embedtest_simple.svg" sodipodi:docbase="/home/tjd/tmpsvg"
51,52c51 < <defs
< id="defs5" />
<defs />
As you can see the 'docbase' directory is being changed to /tmp, but the links out to images are still 'local'. Since the image files are not also copied over to the /tmp directory, these links are not valid.
So I guess the question is whether the links in my svg file are buggy/underdefined (the svg is being generated by a matlab script called plot2svg), and inkscape is letting me get away with this when displaying the images, or whether this is a bug that needs fixing.
I will post this additional info to the bug report and maybe inkscape-devel as well...
Cheers, Tom
11/4/07, Tom Davidson <tjd@...1007...> wrote:
Hi Aaron,
I have run into some odd behavior with the embedimages.py script. Inkscape can find and display the linked images, but when I call the 'embed all images' extension, I get an error that the files can't be found. I have filed a bug report (1824893) with a test case and the error messages on the tracker at http://sourceforge.net/tracker/index.php?func=detail&aid=1824893&gro... ). I will also poke around and see if I can't figure out how to debug it myself, but I'm not a Python person... Thanks very much for your work on Inkscape! -Tom
participants (1)
-
Tom Davidson