Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ofn3-export-layers
#11
(03-31-2025, 07:28 AM)rich2005 Wrote: 74

org.gimp Gimp 3.0.2 appimage looks like this:

Thanks.
Reply
#12
(03-30-2025, 03:16 AM)teapot Wrote: As for ideas I still like the old version that exports all the top level groups as one layer per group.  Generally I don't merge layers and prefer to keep intermediate layers so often keep each try in a top level group where the group contains visible layers that contribute to the result and invisible intermediate layers. So then the old version exports all the tries as they would look if the top level group was visible.

Uploaded a new version with a Top-level export. Enjoy.
Reply
#13
(03-31-2025, 08:07 AM)Ofnuts Wrote: Uploaded a new version with a Top-level export. Enjoy.
 
Thank you, much appreciated. Works like a charm and is producing the same results as the old one did.

Am I right in thinking 'Export all layers' does the export interactively for the first layer and then with last vals for the rest?

I had a look round the 'Export Image as PNG' dialog box that it popped up and then hit cancel instead of export.  This resulted in all but the first layer being exported. Not sure what I expected it to do.

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?

When doing:
  • Start gimp.
  • Export using each of the above.
It looks like the 'Export Image as PNG' dialog box is populated with values that can also be obtained from the Reset button -> 'Reset to Initial values'.
Which is different to 'Reset to factory defaults'.
Where do the 'initial values' come from?

I think the preferences under
Edit -> Preferences
    Image Import & Export
look more like the factory defaults as it has a load of stuff ticked.

Thanks for any help with this.
Reply
#14
(Today, 06:29 AM)teapot Wrote:
(03-31-2025, 08:07 AM)Ofnuts Wrote: Uploaded a new version with a Top-level export. Enjoy.
 
Thank you, much appreciated. Works like a charm and is producing the same results as the old one did.

Am I right in thinking 'Export all layers' does the export interactively for the first layer and then with last vals for the rest?

You are right. This seems to even be a bit more predictable in Gmp3.

(Today, 06:29 AM)teapot Wrote: I had a look round the 'Export Image as PNG' dialog box that it popped up and then hit cancel instead of export.  This resulted in all but the first layer being exported. Not sure what I expected it to do.

OK, this is a bug.

(Today, 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.

(Today, 06:29 AM)teapot Wrote: When doing:
  • Start gimp.
  • Export using each of the above.
It looks like the 'Export Image as PNG' dialog box is populated with values that can also be obtained from the Reset button -> 'Reset to Initial values'.
Which is different to 'Reset to factory defaults'.
Where do the 'initial values' come from?

I think the preferences under
Edit -> Preferences
    Image Import & Export
look more like the factory defaults as it has a load of stuff ticked.

Thanks for any help with this.

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.
Reply
#15
@teapot: Uploaded a new version that detected the cancellation in the file type export dialog.
Reply


Forum Jump: