06-12-2022, 06:20 PM
(This post was last modified: 06-12-2022, 06:26 PM by rich2005.
Edit Reason: typo
)
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
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
...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.
...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.