Check an option for saving the path of a figure

Bug #1794072 reported by David
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Jabiertxof

Bug Description

I am finding `Inkscape` a really good tool for importing `PDF` or `EPS` scientific plots into a blank page, and then place arrows on top of the graphs, text, make scientific drawings assemble them in the desired location and then save as a unique PDF page that can then be included as a unique `figure` in a `latex` document.

Let's imagine an inkscape project that has assembled 10 plots, imported from these folders:

/path1/plot_1.pdf
/path2/plot_2.pdf
...
/path10/plot_10.pdf

We already know that in /path1/ there is also the python, gnuplot, etc source code that produces the PDF plot, for instance:

/path1/plot_1.py
/path2/plot_2.gnu
etc

Most of the times I need to continue working over the original PDF plots that I once imported into a inkscape project I made back in time. For example, change the scale and the title of the plots, and so on. In other words, I need to go to the original source code (gnuplot, python, etc) that produces those plots that have been assembled in the inkscape project.

In these situations, while having the nice inkscape project in the screen with all the plots 1 to 10, it is quite hard to remember where is the location of the original PDF plot.

As far as I am concerned, there is no option in the inkscape interface that allows you to know which is the original location path of the PDF plot that was once imported into the inkscape project.

The closest solution I could find is the following: every time I import a new PDF of EPS, I right click and and create a link which is basically a copy-paste of the location path of the figure.

This solution is quite tedious and most of the times one forgets to create the link. Once the image is imported, the next natural step is to resize it and locate in the desired place, and it is very easy to forget to create the link.

For instance, if this multi PDF plots assemble project was made in Latex, the location path of all the plots would be perfectly identified, i.e. in the `\includegraphics` line.

I was wondering if it is possible to check an option in the importing process that would allow to automatically write the location path of the figure somewhere. Or any other strategy that would automatically write the location path every time a plot is imported. Would this be difficult to implement ?

Thanks a lot for all your help,

All the best,
David

Revision history for this message
Jabiertxof (jabiertxof) wrote :

How to handle this and another embeded files? we need to ask to the user if want to include a description tag to the imported root element with the origin of the file?

Changed in inkscape:
assignee: nobody → Jabiertxof (jabiertxof)
Revision history for this message
Jürgen Weigert (jnweiger) wrote :

When importing a PNG file, I can chose between (*) embed or ( ) link.
Selecting (*) link allows editing the original image and then have it automatically updated in inkscape, by e.g. restarting or re-opening.

This is the workflow David asks for, if I understand correctly. I've used that myself frequently with generated graphics. Applied changes and re-generated them until all is well.

Unfortunately this switch does not exist when importing PDF, PS, or EPSF. I'd ask to extend the UI consistently if possibly rather than inventing a new switch to store a link differntly.

Revision history for this message
Jabiertxof (jabiertxof) wrote :

Hi Jürgen.
This is not posible on this kind of files but I undertand he want a reference of the file location used on import, not autoupdate on file change. I added this also for embebed files like images that can easy be marked his original location.

If he want a autoupdate feature there ia a workarround in master:

Create a SVG and add the PDF, store and create a new SVG and link(file->import) this SVG. add more related content.
When you change the pdf open the first SVG, erase all and reimport, save and the other SVG is updated at the same time you save.

Revision history for this message
David (davidcb) wrote :

Just a copy-paste of my answer posted in the mailing list:

I was thinking on something like: `File > Import`, and once the "PDF import Settings" menu pops up,
I was thinking on a simple "check option" that, when checked, it would automatically write the path of the imported figure (/home/user/path_to_the_figure/figure.pdf) directly onto the "Href" field under "Object attributes" (for instance, or in any other place).

Once the project is saved and closed, the user can re-open the project, do right click on the figure, click on "Link properties" and view the path for the imported figure in the "Href" or title tag field. Then go to that path and modify the gnuplot or python scripts that generate that plot.

Revision history for this message
Jabiertxof (jabiertxof) wrote :

> Just a copy-paste of my answer posted in the mailing list:

This is done 2 entry before for allow readers follow.

tags: added: bug-migration
Revision history for this message
grey tomorrow (gtomorrow) wrote :

Hi - thanks for reporting this bug, I've manually migrated it to Inkscape's new bug tracker on GitLab, and closed it here.

Please feel free to file new bugs about the issues you're seeing at http://inkscape.org/report .

Moved to: https://gitlab.com/inkscape/inbox/issues/2125
Closed by: https://gitlab.com/greytomorrow

Changed in inkscape:
status: New → Invalid
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.