Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re: batch processing on bulk layer
#9
You have quoted this https://www.gimp.org/tutorials/Basic_Batch/ four  times Have you actually studied it ? It will not make you a scripting wizard but might get you started. Use it as a template.

   

...and you can get a simple script-fu

Code:
  (define (photonegative pattern)
  
  (let* ((filelist (cadr (file-glob pattern 1))))
    (while (not (null? filelist))
           (let* ((filename (car filelist))
                  (image (car (gimp-file-load RUN-NONINTERACTIVE filename filename)))
                  (drawable (car (gimp-image-get-active-layer image))))

             (gimp-drawable-levels-stretch drawable)
             (gimp-drawable-invert drawable TRUE)
             
             (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename)
             (gimp-image-delete image))
           (set! filelist (cdr filelist)))))
           

Can you see the similarities ? One gimp procedure replaced by the two you require.

The information on using it is there as well. It tells you to run a command in the folder containing the images.
In a terminal
Code:
gimp -i -b '(photonegative  "*.jpeg" )' -b '(gimp-quit 0)'

...and that will apply the auto white balance and the invert-linear

example: https://i.imgur.com/TxXVJUs.mp4

...but if you want to do more than that, color corrections, then the commands you want are GEGL and not (easily) scriptable

Do not want to use BIMP ? I can have your 999 negatives processed before you have finished copying the script into your Gimp scripts folder.
Reply


Messages In This Thread
RE: Re: batch processing on bulk layer - by rich2005 - 06-12-2022, 06:20 PM

Forum Jump: