I need some help getting my deskew batch script working.
I want to deskew about 100 JPG files located in my folder C:\gimp
I'm running Windows 7 64-bit
Here's what I have:
1. A batch-deskew.scm file in: C:\Program Files (x86)\GIMP-2.0\bin
The following is its code:
(define (batch-deskew pattern)
(let* ((filelist (cadr (file-glob pattern 1))))
(while (not (null? filelist))
(filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
(drawable (car (gimp-image-get-active-layer image)))
(gimp-deskew-plugin 0 image drawable 0 0 0 0 0)
image drawable filename filename)
(set! filelist (cdr filelist))
2. The deskew plug-in in this folder: C:\Program Files (x86)\GIMP-2.0\lib\gimp\2.0\plug-ins
3. A batch file called gimpdeskew_jpg in the folder C:\gimp
The following is the batch code:
cd C:\Program Files (x86)\GIMP-2.0\bin
gimp-2.6 -i -b "(batch-deskew \"C:\\gimp\\*.jpg\")" -b "(gimp-quit 0)"
4. About 100 JPG files in the folder C:\gimp
When I execute gimpdeskew_jpg I get an error message in the command prompt: "batch command experienced an execution error."
What am I doing wrong?
Thank you in advance!