I'm trying to automate removing a border on the sides of images.
Here's what I have:
(define (resize-canvas 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-image-resize image 1276 720 -2 0) (gimp-file-save RUN-NONINTERACTIVE image drawable filename filename) (gimp-image-delete image)) (set! filelist (cdr filelist)))))
The script seems to just save the image without any resize changes. It saves as expected when using image-scale. I'm guessing I'm not using drawable with image-resize correctly, but I'm not sure what the correct way is.