Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Re: batch processing on bulk layer
#10
(06-12-2022, 06:20 PM)rich2005 Wrote: 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.
Thanks for your advice.

Sorry.  It is difficult for me tracing data in another thread.

Now I have changed my decision, scanning past photos on smartphoto instead of their film negatives.  It'll save me lot of time. The quality of the digital photos is quite good.  No post-editing is required.  Please refers to attached photos captured by me in the past in Linz, Austria, no macros, only 1x1

The fixture is very simple.  The plastic clips are for indexing. Please refers to attached photo

Cropping can't be avoided.  Should I find those digital photos are of inferior quality then I'll scan their negatives.

Regards

Hi all,

I'm running remote desktop to shoot photos remotely.

My smartphone, Samsung Galaxy S9+, is connected to Ubuntu 20.04 desktop PC via an USB cable. It will charge the smartphone during capturing simultaneously.

I just remote-control the smartphone on Ubuntu 20.04 display and keyboard. After capturing, the digital file is immediately download to PC without saving on the smartphone.

This arrangement is very efficient without creating un-necessary motion to the smartphone during capturing because I don't need touching the screen of the smartphone.

Regards


Attached Files Thumbnail(s)
               
Reply


Messages In This Thread
RE: Re: batch processing on bulk layer - by Stephen Liu - 06-13-2022, 01:57 AM

Forum Jump: