Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I need help with Gimp Batch file Processing

364 views
Skip to first unread message

ThWatcher

unread,
Sep 19, 2011, 6:31:27 PM9/19/11
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
-----------------------------

Apollonio

unread,
Sep 20, 2011, 4:58:56 PM9/20/11
to
Hi,

Look at my script auto-convert-and-resize to process large collections
of images automatically.

From my web site:
http://xoomer.alice.it/lwcon/gimp/scripts/auto-convert-and-resize.htm

direct download:
http://xoomer.virgilio.it/lwcon/gimp/scripts/auto-convert-and-resize/auto-convert-and-resize-4.0.zip

or from plugin registry:
http://registry.gimp.org/node/10467

Best regards

ThWatcher

unread,
Sep 20, 2011, 5:18:33 PM9/20/11
to
Thanks.
That script gave me some info on how to make scripts work properly.

I have it working now.

SB

unread,
Sep 24, 2011, 8:37:41 AM9/24/11
to
Il giorno Tue, 20 Sep 2011 22:58:56 +0200, Apollonio <apollon...@quipo.net>
ha scritto:
You have a lot of interesting scripts

Thanks


--
ciao
Stefano
0 new messages