bolum-watun
12.12.2007, 00:33
Hallo,
ich möchte mehrere Dateien auf einmal in Graustufen umwandeln. Den Code habe ich von http://www.gimp.org/tutorials/Basic_Batch/ .
(define (script-fu-batch-graustufen 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-undo-disable image)
(gimp-image-convert-grayscale image)
(gimp-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))
Doch das Skript bricht immer mit "Error: Procedure execution of gimp-image-convert-grayscale failed" ab, egal ob ich es mit einer Liste /pfad/*.png oder nur einem Bild aufrufe.
Ich verwende GIMP 2.4.2 unter Linux.
Was mache ich falsch? Wo liegt der Fehler?
Vielen Dank für eure Hilfe,
bolum-watun
ich möchte mehrere Dateien auf einmal in Graustufen umwandeln. Den Code habe ich von http://www.gimp.org/tutorials/Basic_Batch/ .
(define (script-fu-batch-graustufen 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-undo-disable image)
(gimp-image-convert-grayscale image)
(gimp-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))
Doch das Skript bricht immer mit "Error: Procedure execution of gimp-image-convert-grayscale failed" ab, egal ob ich es mit einer Liste /pfad/*.png oder nur einem Bild aufrufe.
Ich verwende GIMP 2.4.2 unter Linux.
Was mache ich falsch? Wo liegt der Fehler?
Vielen Dank für eure Hilfe,
bolum-watun