Edit bitmap externally fails for relative links

Bug #499252 reported by André Oliva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Medium
jazzynico

Bug Description

Create a new file. Import a bitmap. Save the document in any folder, except in the default. Make a copy of that bitmap as a bitmap (Alt+B) [I do this for editing images in order to keep the original image unchanged]. Try to edit the bitmap externally. The external editor will launch an error message indicating that the file does not exist. I think that this is because Inkscape gives the name of the file to the bitmap editor without the path where is located the linked file.

Tags: bitmap
Revision history for this message
su_v (suv-lp) wrote :

reproduced with Inkscape 0.47+devel r8898 on OS X 10.5.6

Making a bitmap copy stores the image with a relative link (no path information), and Inkscape fails to resolve relative file names for editing bitmaps externally.

Changed in inkscape:
status: New → Confirmed
tags: added: bitmap
Revision history for this message
su_v (suv-lp) wrote :

@André - can you add information about Inkscape and OS version?

Revision history for this message
André Oliva (gandreoliva) wrote :

Sure. I'm running Inkscape 0.47 in Ubuntu 9.10.

Revision history for this message
su_v (suv-lp) wrote :

Raising 'Importance' to 'Medium' and setting target milestone to 0.49:

In current trunk, image links are always relative if possible (linked bitmap image inside the document's directory or sub-directories), see bug #170225. Such linked images can no longer be edited externally (the bug as originally reported no longer exists: bitmap copies are embedded by default now).

Changed in inkscape:
importance: Undecided → Medium
milestone: none → 0.49
summary: - edit bitmap externally doesn't follow file path
+ Edit bitmap externally fails for relative links
Revision history for this message
su_v (suv-lp) wrote :

Tested and reproduced with Inkscape 0.48+devel r10908 on OS X 10.7.2

Revision history for this message
jazzynico (jazzynico) wrote :

Not reproduced on Windows XP, Inkscape 11047. Relative links open correctly with Gimp.
Note that the win32 code is a bit specific (#ifdefed).

Changed in inkscape:
assignee: nobody → JazzyNico (jazzynico)
status: Confirmed → Triaged
jazzynico (jazzynico)
Changed in inkscape:
status: Triaged → In Progress
Revision history for this message
jazzynico (jazzynico) wrote :

Fix committed, trunk revision 11053. Tested on XP and Ubuntu 11.04.
Don't hesitate to test and comment if something goes wrong.

Changed in inkscape:
status: In Progress → Fix Committed
tags: added: backport-proposed
Revision history for this message
Kris (kris-degussem) wrote :

The patch in attachment should do the backporting to 0.48.4.
I was not able to edit externally on trunk (vista 64 bit), so I can not really test it (anyone who can?).

Revision history for this message
jazzynico (jazzynico) wrote :

Patch from comment #8 tested on Debian testing, and backported to the branch, revision 9921.

@Kris - Testing on Windows is possible, you just need to add the gimp bin path to your PATH env. and rename the gimp26.exe file to gimp.exe.

Changed in inkscape:
milestone: 0.49 → 0.48.4
tags: removed: backport-proposed
Ted Gould (ted)
Changed in inkscape:
status: Fix Committed → Fix Released
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.