GIMP Chat
http://gimpchat.com/

Export Layers by Khalim19 as batch action proces.
http://gimpchat.com/viewtopic.php?f=9&t=17874
Page 1 of 1

Author:  MareroQ [ Mon Dec 16, 2019 5:49 pm ]
Post subject:  Export Layers by Khalim19 as batch action proces.

Autor: khalim19
Download latest release (3.3.1, February 04, 2019):
https://github.com/khalim19/gimp-plugin-export-layers

Features Gimp plugin Export-layers

- Export in any file format provided by GIMP and third-party plug-ins
- Preview layers to be exported
- Customize export with additional procedures and constraints


Probably the best-known batch plugins in Gimp for repetitive/serial file or layer changes:

1.BIMP (2.2) by Alessandro Francesconi
https://alessandrofrancesconi.it/projects/bimp/
Supports saved files (Very good solution but small preview, limited number of file extensions).

2. ofn-export-layers by Ofnuts.
https://sourceforge.net/projects/gimp-t ... s/scripts/
Supports open layers.

Export layers it can support both open layers and saved files.
I was interested in the issue:
Batch process? https://github.com/khalim19/gimp-plugin ... /issues/79

The proposed solution is based on pasting the code into the python console.
This is not a practical solution (I use the console only as a last resort) and it did not work for me (did not include) with additional settings (Add Custom Procedure).

My solution is to split the action into two plugins:
1. Export_layers_batch_extension.py (using run_mode=RUN_NONINTERACTIVE)
In menu Gimp: File -> Export Layers Batch Extension
2. Export_layers_batch_actions.py (using run_mode=RUN_WITH_LAST_VALS).
In menu Gimp: File -> Export Layers Batch Actions

Attachments:
BIMP actions.png
BIMP actions.png [ 65.14 KiB | Viewed 4093 times ]
Ofn-export-layers.png
Ofn-export-layers.png [ 5.73 KiB | Viewed 4093 times ]
Export Layers Batch.png
Export Layers Batch.png [ 15.84 KiB | Viewed 4093 times ]

Author:  MareroQ [ Mon Dec 16, 2019 5:51 pm ]
Post subject:  Re: Export Layers by Khalim19 as batch action proces.

continued

Attachments:
Export layers 2.png
Export layers 2.png [ 260.04 KiB | Viewed 4092 times ]
Export layers 1.png
Export layers 1.png [ 114.5 KiB | Viewed 4092 times ]
Export Layers Batch.zip [1.8 KiB]
Downloaded 115 times

Author:  MareroQ [ Wed Dec 25, 2019 4:29 am ]
Post subject:  Re: Export Layers by Khalim19 as batch action proces.

Ver. 0.2

I am not sure if khalim19 will continue to develop its plugin.
I asked for new functions:
https://github.com/khalim19/gimp-plugin ... /issues/81
unfortunately no response yet (maybe it's just a temporary break in working on this plugin?)

Hence the attempt of own solution and the new version which:
- combines the functions of previous plugins (batch extension and batch actions) into one with an additional function:
- openeds source / result files (in various options).

Now not only export but also import - so change the name in the menu:
File -> Batch Using Export Layers ...

The association with BUEL is only accidental: :hi5
https://www.urbandictionary.com/define.php?term=Buel

The instructions seem long, but it comes down to:
select options in BUEL, repeat them in Export Layers (which will start automatically) and save changes and close this new window.
Now Export Layers will work in mode run_mode=RUN_WITH_LAST_VALS.


Loading the other settings looks worse.
The settings are saved in a parasiterc file (in home directory).
What is parasitesrc?

It is used to store persistent global parasites.
Stores all persistent GIMP parasites. This file will be rewritten every time you quit GIMP.
This is file is recreated everytime GIMP starts up.
Parasites of an image component may be read by GIMP plug-ins. Plug-ins may also define their
own parasite names, which are ignored by other plug-ins.


So it is not possible to load other settings from this file when Gimp is already running - but you can make a backup when our settings are very extensive
(of course after closing GIMP - I just pack this file as parasiterc.zip).

Attachments:
BUEL.png
BUEL.png [ 16.11 KiB | Viewed 3971 times ]
Parasiterc.png
Parasiterc.png [ 7.56 KiB | Viewed 3971 times ]
Batch Using Export Layers.zip [1.95 KiB]
Downloaded 112 times

Author:  MareroQ [ Tue Dec 31, 2019 6:10 am ]
Post subject:  Re: Export Layers by Khalim19 as batch action proces.

The good news from khalim19 is this:
Loading settings from file shouldn't be too difficult to implement. I'll add this feature to 3.4.
Also the reverse layer display (after applying additional procedures) will probably be included.
Now I will wait patiently.
Pending changes, the latest version of BUEL.

Ver. 0.3
My goal was to apply additional procedures to saved files or to newly created layers - that's why I added the "Batch mode: Layers or File" selection
Now BUEL uses all available modes in one run for layers not yet saved.

"Batch mode: Layers" is as follows:
- write layers to an empty IN directory (run_mode=RUN_NONINTERACTIVE)
- will open automatically Export-Layers - so then set parameters, save and close (run_mode=RUN_INTERACTIVE),
- will be done additional procedures will (run_mode=RUN_WITH_LAST_VALS)

Attachments:
New in BUEL.png
New in BUEL.png [ 18.18 KiB | Viewed 3775 times ]
Batch Using Export Layers-V.0.3.zip [2.06 KiB]
Downloaded 102 times

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/