It is currently Thu Jun 27, 2024 7:46 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Export Layers by Khalim19 as batch action proces.
PostPosted: Mon Dec 16, 2019 5:49 pm  (#1) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
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 4087 times ]
Ofn-export-layers.png
Ofn-export-layers.png [ 5.73 KiB | Viewed 4087 times ]
Export Layers Batch.png
Export Layers Batch.png [ 15.84 KiB | Viewed 4087 times ]

_________________
Image

Slava
Ukraini!
Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Export Layers by Khalim19 as batch action proces.
PostPosted: Mon Dec 16, 2019 5:51 pm  (#2) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
continued


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

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Export Layers by Khalim19 as batch action proces.
PostPosted: Wed Dec 25, 2019 4:29 am  (#3) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
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 3965 times ]
Parasiterc.png
Parasiterc.png [ 7.56 KiB | Viewed 3965 times ]
Batch Using Export Layers.zip [1.95 KiB]
Downloaded 111 times

_________________
Image

Slava
Ukraini!
Top
 Post subject: Re: Export Layers by Khalim19 as batch action proces.
PostPosted: Tue Dec 31, 2019 6:10 am  (#4) 
Offline
GimpChat Member
User avatar

Joined: Jan 13, 2011
Posts: 2260
Location: Poland
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 3769 times ]
Batch Using Export Layers-V.0.3.zip [2.06 KiB]
Downloaded 102 times

_________________
Image

Slava
Ukraini!
Top
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


   Similar Topics   Replies 
No new posts Attachment(s) Batch export all opened images script for GIMP [Update]

13

No new posts Batch Create Layers

2

No new posts Attachment(s) Export as layers not working

5

No new posts Attachment(s) Export Layers - new features

2

No new posts Attachment(s) New GEGL Filter to make Action Lines. It does away with Lina Nova

5


cron

* Login  



Powered by phpBB3 © phpBB Group