Inkscape Community

Help Using Inkscape => Inkscape Beginners' Questions => Topic started by: david_kay on March 27, 2019, 10:59:54 AM

Title: export filename not using object ID
Post by: david_kay on March 27, 2019, 10:59:54 AM
Hi, I have this problem for some time now. I name my objects using ID labels in the object properties so when they get exported they automatically have correct filenames assigned. but some time ago this feature got broken and more often than not all the exported objects will ignore the object ID and apply a random name that was used for recent export. so now when I try to batch export all the exported files will have the same name and they will overwrite each other, forcin me to export them one by one, typing down name for each exported object manually... Is there any way to fix this? I had no luck trying to google this issue so far.
Title: Re: export filename not using object ID
Post by: Moini on March 27, 2019, 04:06:54 PM
I think we already met in the chat, and I assume you made a bug report?
Title: Re: export filename not using object ID
Post by: david_kay on March 27, 2019, 04:39:14 PM
I started filling it in, but I'm double checking just to be sure I'm not missing anything obvious
Title: Re: export filename not using object ID
Post by: brynn on March 27, 2019, 06:35:47 PM
Welcome to the forum!

Was there more info given in the chat?  I'm not clear how the objects lost their unique IDs.

Using 0.92.3, it seems to be working properly.

This is not a feature that I have used very much.  So I did learn that I had to be sure and click the Set button, in Object Properties dialog.  Otherwise the names are replace with the random id.  I'm not sure if the Set button is new, or if it has always been there.  But after using Set, and exporting, all the objects kept their same name.

I have not yet upgraded to 0.92.4.  If I have time later, I'll do that, and test again.
Title: Re: export filename not using object ID
Post by: david_kay on March 28, 2019, 02:25:02 AM
Hello brynn! The issue is not that objects lose their ID. The ID names are not properly updated in the export window. From what I found trying to recreate this bug it seems to happen when I manually edit the output path or filename in the export window. Whenever I do this all other objects will get exported with the exact same path and filename. Even when batching.

After I fiddled with this a bit more it seems that closing and reopening the file helps, but the problem still comes back at some point.

I found another issue - if I export some files by editing the path in the export window and then try to export multiple objects in a batch, then some of the png files will end up in different folders.
Title: Re: export filename not using object ID
Post by: Moini on March 28, 2019, 06:23:02 AM
Can you link to the report(s) you made?
Title: Re: export filename not using object ID
Post by: david_kay on March 28, 2019, 07:11:10 AM
https://gitlab.com/inkscape/inbox/issues/249
Title: Re: export filename not using object ID
Post by: brynn on March 28, 2019, 06:31:04 PM
I must not be understanding what you're doing with the batch export.  Do you mean using File menu > Export PNG Image dialog?  When I use the batch export option, the filename window is completely grayed out.  I can't use it at all.

Maybe something is new with 0.92.4?  I didn't get a chance to install it yet, but I'll try again tonight.
Title: Re: export filename not using object ID
Post by: brynn on March 28, 2019, 08:28:59 PM
Ok, I must be just missing what you're trying to do.  Now I've installed 0.92.4, and the file name area is still grayed out, whenever I check the batch export option.  So I can't set the file names at all.

If I select the objects individually, it does show the correct names.  But once I check the batch export option, everything except the Export button is grayed out of that whole dialog.
Title: Re: export filename not using object ID
Post by: david_kay on March 29, 2019, 02:41:39 AM
You have to edit the filename before you check the batch export option. When I do that then this edited path and filename is then applied to all exported files, no matter if I export them individually or via batch. then I have to close and reopen the file again to fix it. and even then some objects will default to the wrong filename and I have to ungroup and group them again. this iseems to fix the problem with exporting to wrong directory.
Title: Re: export filename not using object ID
Post by: brynn on March 29, 2019, 03:04:05 AM
I thought you were using Object Properties dialog to give them a custom ID name.  When I do that, they show the right name in the export dialog.  Don't they show the right name for you?

Edit
I thought the fact the filename field is grayed out when the batch option is selected means that the filename field won't work.  So I never tried to use it for the batch export.