ThWatcher
unread,Sep 19, 2011, 6:31:27 PM9/19/11You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hello and thanks for any help anyone can give me.
I'm obviously doing something wrong because so many other sites publish
scripts very similar to this one. So, please feel free to point out
exactly where I messed up. I'll accept it gladly if it will lead me to
learning from my error.
I'm trying to set up some batch processing in Gimp for a few thousand
image files.
I'm "working on / trying this" with 2 PC systems, a Vista PC and a
Windows 7 PC.
The images are in: <E:\My Pics\Ricks Fantasy Photography\tmp>
My batch file is in the same folder as the images and contains:
-----------------------------
"C:\Program Files (x86)\GIMP-2.0\bin\gimp-2.6.exe" -i -b (batch-convert
"GED*.JPG") -b '(gimp-quit 0)'
-----------------------------
My Gimp script file is in the folder: <C:\Users\Nail\.gimp-2.6\scripts>
So far, it contains:
-----------------------------
(define (batch-auto-fix pattern
radius
amount
threshold)
(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))))
(plug-in-unsharp-mask RUN-NONINTERACTIVE
image drawable radius amount threshold)
(gimp-levels-stretch drawable)
(plug-in-color-enhance RUN-NONINTERACTIVE
image drawable)
(gimp-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))
-----------------------------
I open up a command prompt window and change to the folder with the
images and batch file.
I execute the batch file.
It opens a prompt window for Gimp labeled: (GIMP output. You can
minimize this window but don't close it.)
Inside this window, I get:
-----------------------------
GIMP-Error: Opening 'E:\My Pics\Ricks Fantasy Photography\tmp\GED*.JPG)'
failed: Invalid argument
GIMP-Error: Opening 'E:\My Pics\Ricks Fantasy Photography\tmp\0)''
failed: No such file or directory
batch command executed successfully
batch command executed successfully
-----------------------------