Change Default Path for Export?

Post questions on how to use or achieve an effect in Inkscape.
RubenGeert
Posts: 24
Joined: Thu May 16, 2013 10:23 pm

Change Default Path for Export?

Postby RubenGeert » Sat Aug 06, 2016 3:04 pm

Dear all,

If I'm not mistaking, my previous Inkscape version used to suggest exporting .svg files as the (absolute) path of the .svg file with ".png" instead of ".svg". That is,

Code: Select all

C:\Users\ruben\Desktop\my-ugly-drawing.svg


was -by default- exported as

Code: Select all

C:\Users\ruben\Desktop\my-ugly-drawing.png


or that's how I remember it anyway. Now, however, Inkscape attempts to use nonsensical paths all the time such as

Code: Select all

C:\Users\ruben\rect4022.png


in which case I have to change the folder as well as the filename. Is there any way to change these default settings? I looked under Shift + Ctrl + P but I didn't find anything addressing this.

Thanks in advance,

Ruben

Moini
Posts: 3381
Joined: Mon Oct 05, 2015 10:44 am

Re: Change Default Path for Export?

Postby Moini » Sun Aug 07, 2016 9:32 am

The filename is (most probably) due to your using 'Export selection' while only having a single object (which is a rectangle) selected.

Inkscape uses something called 'export hints' for choosing the file names. There can be one for each object in your drawing. That name will be saved inside the document.
So if you export an object for the first time, then Inkscape will choose a default name, taken from the id of the object (or from the file name, if you export the whole drawing). Next time you export the same object, Inkscape will remember the last used file name for that object, and use that name now as a default.

For example, if you export a rectangle, Inkscape will look if you ever exported that, and if not, it will create a file name from the id of the object (e.g. rect4022).

Hope this explains the behaviour.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!

Inkscape FAQ - Learning Resources - Website with tutorials (German and English)

RubenGeert
Posts: 24
Joined: Thu May 16, 2013 10:23 pm

Re: Change Default Path for Export?

Postby RubenGeert » Sun Aug 07, 2016 3:12 pm

Thanks for clarifying, Moini!

So there's no way to tell inkscape to always use the .svg path when exporting to .png? Bummer.

My illustrations are usually based around 1 or 2 screenshots to which I add some highlights, notes and bullet points. I usually export "selection" because there's often some draft parts around it which I sometimes put back into the drawing if I don't like the exported result.

Perhaps exporting "drawing" will more often give Inkscape the right hints.

User avatar
Xav
Posts: 1209
Joined: Fri May 08, 2009 1:18 am
Location: UK
Contact:

Re: Change Default Path for Export?

Postby Xav » Sun Aug 07, 2016 4:32 pm

RubenGeert wrote:My illustrations are usually based around 1 or 2 screenshots to which I add some highlights, notes and bullet points. I usually export "selection" because there's often some draft parts around it which I sometimes put back into the drawing if I don't like the exported result.


Another approach would be to make sure the draft parts lie well outside the "real" parts. You can then select all the real parts and set the canvas size to suit the selection, via the Document Properties "Resize page to drawing or selection" button.

Now, per Moini's post, you need to do your first export with nothing selected (otherwise you'll get the "rect12345.png" name). But you can use the "Page" button to only export the objects within your page boundary, not your draft parts outside it. For subsequent exports, as soon as you select the "Page" button it will use the path and filename of the previous Page export, even if you had something else selected when you opened the dialog.
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter


Return to “Help with using Inkscape”