Gimp-Forum.net
Batch Image Processing (layer manupulation) - Printable Version

+- Gimp-Forum.net (https://www.gimp-forum.net)
+-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP)
+--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP)
+---- Forum: Scripting questions (https://www.gimp-forum.net/Forum-Scripting-questions)
+---- Thread: Batch Image Processing (layer manupulation) (/Thread-Batch-Image-Processing-layer-manupulation)



Batch Image Processing (layer manupulation) - izwan - 11-23-2021

Hi,

I'm kind of new using batch processing. I have about 300 pages of scanned old manuscript. Its yellowish and stained.

Normally I will clean it up by:


1. Duplicate the layer
2. Change the top layer mode to "grain merge"
3. Merge down the layer.
4. Repeat the steps until I got a much cleaner page.
5. Touch up using brush.

I was wondering if there is a scrip or command that I can use to to step 1 to step 3 on batch file. I mean, cleaning up old manuscript for family safekeeping is really hard work. If there is a batch processing that I can run and sit back. I still need to touch up here and there of course, but this will take at least 75% work load if I can automate it.

Thank you


RE: Batch Image Processing (layer manupulation) - rich2005 - 11-24-2021

No replies ?  I was hoping one of the clever guys would give advice, however the attached plugin will perform steps 1 to 3. You can repeat using Filters -> Repeat Last (Ctrl-F) to suit

Since there is a step 4. Repeat the steps until I got a much cleaner page. That is an unknown, you can not script your judgement. So a batch for repeat n number times is not really feasible.

There are plugins for cleaning up scanned documents. The gimp_gmic_qt plugin http://www.gmic.eu has a filter. That can be run on a folder full of images using the BIMP batch plugin https://alessandrofrancesconi.it/projects/bimp/  This might be a better way to go.

Unzip the attached, Put grain-merge-layer.py  in C:\Users\"yourname"\AppData\Roaming\GIMP\2.10\plug-ins  It registers in the Tools menu.