Author Topic: export filename not using object ID  (Read 548 times)

March 27, 2019, 10:59:54 AM
Read 548 times

david_kay

  • Sr. Newbie

  • Offline
  • **

  • 5
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.
  • 0.92
  • windows 10

March 27, 2019, 04:06:54 PM
Reply #1

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
I think we already met in the chat, and I assume you made a bug report?

March 27, 2019, 04:39:14 PM
Reply #2

david_kay

  • Sr. Newbie

  • Offline
  • **

  • 5
I started filling it in, but I'm double checking just to be sure I'm not missing anything obvious
  • 0.92
  • windows 10

March 27, 2019, 06:35:47 PM
Reply #3

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

March 28, 2019, 02:25:02 AM
Reply #4

david_kay

  • Sr. Newbie

  • Offline
  • **

  • 5
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.
  • 0.92
  • windows 10

March 28, 2019, 06:23:02 AM
Reply #5

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
Can you link to the report(s) you made?

March 28, 2019, 07:11:10 AM
Reply #6

david_kay

  • Sr. Newbie

  • Offline
  • **

  • 5
  • 0.92
  • windows 10

March 28, 2019, 06:31:04 PM
Reply #7

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

March 28, 2019, 08:28:59 PM
Reply #8

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

March 29, 2019, 02:41:39 AM
Reply #9

david_kay

  • Sr. Newbie

  • Offline
  • **

  • 5
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.
  • 0.92
  • windows 10

March 29, 2019, 03:04:05 AM
Reply #10

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
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.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann