Here's my current script:
(define (crop-crpd code) (let* ( (company (substring code 0 4)) (input (string-append "./" code "/" code ".jpg")) (output (string-append "./" code "/folder.jpg")) (image (car (file-jpeg-load 1 input output))) (drawable) ) (gimp-image-crop image 379 536 421 0) ;Example si on veut setter une variable en dehors de la declaration(it wasn't necessary in this case) (set! drawable (car (gimp-image-get-active-drawable image))) ;save en jpeg, qualite 90% (file-jpeg-save 1 image drawable output output 0.9 0 1 0 "" 0 1 0 0))) ;Set the file(s) to be cropped (crop-crpd "CRPD-036") (gimp-quit 0)
Instead of saving to a fixed 0.9 quality setting, I would like to use the quality of the loaded jpeg.
Also, I execute the script from a .bat and I was wondering if there is a way to not have to press a key after execution? I would like the cmd window to simply disappear.
Command from .bat:
gimp-2.6 -i -b - < crop-crpd.txt

Help










