How to set default png export path for all images exported as batch from one svg file

Post questions on how to use or achieve an effect in Inkscape.
Vectorator
Posts: 96
Joined: Tue Oct 21, 2014 1:40 pm
Location: Australia

How to set default png export path for all images exported as batch from one svg file

Postby Vectorator » Sat Aug 18, 2018 2:27 pm

When you are clicking on multiple objects and selecting "Export png Image" > "Batch Export tickbox" > "Export" is there a way to choose the directory path for all images exported via batch export from that one svg file?

Any ideas?


Using latest Ubuntu linux with Inkscape .92

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to set default png export path for all images exported as batch from one svg file

Postby brynn » Sun Aug 19, 2018 1:30 am

Wow! Since I never have used this feature, I just tested it. I'm really surprised that the dialog does not let you choose where you want the images to be exported.

It exports them to my user directory (in Windows, C:\Users\brynn). I thought that might be configurable in Inkscape Preferences > System, but I don't see it. Also don't see it in Inkscape Prefs > Bitmaps

I wonder if it would be possible to change it by manually editing preferences.xml ? If it is possible, I'd have to do some study to figure out exactly what to edit.

If there really is no way to specify the directory, I would suggest a feature request (if there is not one already). https://launchpad.net/inkscape

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

Re: How to set default png export path for all images exported as batch from one svg file

Postby Moini » Sun Aug 19, 2018 7:12 am

Yep. That's correct. Lol, I can even see where this would need to be fixed: export.cpp, line 1045 (in 0.92.x)... I would make it grab the directory from the field for the file name that is entered, instead of just deciding that there is no path, if the exported object itself does not have an export path set.
Can't fix it, though, but if someone wants to add that info to the report...
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)

User avatar
brynn
Posts: 10309
Joined: Wed Sep 26, 2007 4:34 pm
Location: western USA
Contact:

Re: How to set default png export path for all images exported as batch from one svg file

Postby brynn » Mon Aug 20, 2018 6:56 am

I'm not sure what you mean about grabbing the directory from the field for the file name. Because as soon as I check the batch export option, the Save As button and field are both grayed out (along with everything else in the dialog, except for Export button). Not unless you're suggesting not to gray them out, and instead use them to define the directory?

As far as I can tell, this has not been either reported or requested. There is one bug with a title which sounds exactly like what this should be. But when you read it, it's really about something else.

I don't mind making the report, but I could only quote directly your message. I don't understand it well enough to explain what you mean.

Here it is: https://bugs.launchpad.net/inkscape/+bug/1787848

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

Re: How to set default png export path for all images exported as batch from one svg file

Postby Moini » Mon Aug 20, 2018 7:10 am

Yes, I'd make it use the directory that is indicated already, and I'd probably also use the file name from there, and append either the object id to it, or just a number.
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)

Mastermemorex
Posts: 2
Joined: Sat Sep 30, 2017 11:01 am

Re: How to set default png export path for all images exported as batch from one svg file

Postby Mastermemorex » Tue Feb 12, 2019 4:02 am

I am using Inkscape to create icons. Everytime I export one to png it sends me to the path /user/...blabla/
Inkscape stores the last file name, but if I ungroup, modify and then group, it forgets and returns to the default path /user/...blabla/ :|
It will be very helpful if there is an option where I can specify the path where I want to export, because it is very tedious.

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

Re: How to set default png export path for all images exported as batch from one svg file

Postby Xav » Tue Feb 12, 2019 4:34 am

Mastermemorex wrote:... if I ungroup, modify and then group ...


You may have very good reasons for this workflow but, just in case you weren't aware, you can "enter" a group and make edits inside it; there's no need to ungroup every time. You can use the options at the bottom of the right-click context menu to go in and out of a group, but I prefer to just double-click on a group to enter it, and double-click outside the group to exit (or use the popup in the status bar at the bottom of the screen to jump back up to a specific level if you have nested groups).
Co-creator of The Greys and Monsters, Inked - Inkscape drawn webcomics
Web SiteFacebookTwitter


Return to “Help with using Inkscape”