Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn3-export-layers
#16
(04-02-2025, 08:38 AM)Ofnuts Wrote:
(04-02-2025, 06:29 AM)teapot Wrote: Also, trying to understand where the values in the 'Export Image as PNG' dialog box come from:

It looks like each of
  • File -> Export as
  • File -> Export all layers
pops up the PNG dialog box containing the settings they used last time but that's not shared between them.

Also each have their own 'Export Image as PNG' dialog box save/load settings.

Is that Right?

You are probably right. But at that point it's not my code.

I now think I was wrong Smile

(04-02-2025, 08:38 AM)Ofnuts Wrote: After a quick experimentation, It seems that there are three sets of settings:
  • The "factory defaults" that are the values that are coded in the script by its authors, restored with  Reset to factory defaults.
  • The explicitly saved settings that are those that you save with Save settings, and restored with Load saved settings
  • The automatically saved settings that are saved when your run the script, re-loaded next time around by default, and can also be restored by Reset to initial values (so pretty much the "LAST_VALS" if someone calls this plugin from another). 

But at that point this is Gimp code, I have no code hiding behind these buttons.

That makes sense thank you.

There is only one GimpProcedureConfigRun-file-png-export.last file so I now think my confusion over the settings is because, in gimp 3.0 that I'm still on so this may be out of date, some fields get reset between runs.

For example the differences in the file GimpProcedureConfigRun-file-png-export.last between two consecutive runs of export all layers where I didn't change any settings between runs:

Code:
5c5
< (bkgd yes)
---
> (bkgd no)
13,14c13,14
< (include-iptc yes)
< (include-xmp yes)
---
> (include-iptc no)
> (include-xmp no)
16c16
< (include-thumbnail yes)
---
> (include-thumbnail no)
19c18
< (gimp-comment "Using ofn export all layers.")
---
> (gimp-comment "Created with GIMP")

So a possible bug in Gimp 3.0 and not to do with your code, apologies that this has been a diversion from the topic of the thread.
Reply


Messages In This Thread
ofn3-export-layers - by Ofnuts - 03-29-2025, 04:40 PM
RE: ofn3-export-layers - by rich2005 - 03-29-2025, 08:06 PM
RE: ofn3-export-layers - by Ofnuts - 03-29-2025, 08:59 PM
RE: ofn3-export-layers - by rich2005 - 03-29-2025, 09:23 PM
RE: ofn3-export-layers - by Ofnuts - 03-29-2025, 10:00 PM
RE: ofn3-export-layers - by teapot - 03-30-2025, 03:16 AM
RE: ofn3-export-layers - by Ofnuts - 03-30-2025, 08:39 AM
RE: ofn3-export-layers - by Ofnuts - 03-31-2025, 08:07 AM
RE: ofn3-export-layers - by rich2005 - 03-30-2025, 09:23 AM
RE: ofn3-export-layers - by Ofnuts - 03-31-2025, 12:52 AM
RE: ofn3-export-layers - by rich2005 - 03-31-2025, 07:28 AM
RE: ofn3-export-layers - by Ofnuts - 03-31-2025, 08:04 AM
RE: ofn3-export-layers - by teapot - 04-02-2025, 06:29 AM
RE: ofn3-export-layers - by Ofnuts - 04-02-2025, 08:38 AM
RE: ofn3-export-layers - by teapot - Yesterday, 07:13 AM
RE: ofn3-export-layers - by Ofnuts - 04-02-2025, 08:56 AM
RE: ofn3-export-layers - by teapot - 4 hours ago
RE: ofn3-export-layers - by Ofnuts - 1 hour ago

Forum Jump: