Sven Neumann <[EMAIL PROTECTED]> writes:
>> I was wondering whether there is any way to apply the
>> filter simultaneously to all my pictures.
> Not simultanously but using a small script you can apply the same
> effect to a list of images.
I guess it would help if I posted such a script here. The batch
capabilities of GIMP could definitely be documented better. If someone
would want to contribute a tutorial for batch processing using GIMP
2.2, we would be happy to add it to www.gimp.org.
OK, here's the script. It doesn't register any menu entry and can thus
only be run from the command-line or the Script-Fu console. It would
be easy to let it register in the menus, but I thought I should keep
it as simple as possible:
;; batch-unsharp-mask -- apply unsharp-mask on a set of files
;; simple batch script for GIMP 2.2
;; call it from the command-line using a line like the following:
;; gimp -i -b "(batch-unsharp-mask \"*.png\" 5.0 0.5 0)" "(gimp-quit 0)"
;; This script uses the file-glob plug-in which is not available in GIMP 2.0.
(define (batch-unsharp-mask pattern
(let* ((filelist (cadr (file-glob pattern 1))))
(let* ((filename (car filelist))
(image (car (gimp-file-load RUN-NONINTERACTIVE
(drawable (car (gimp-image-get-active-layer image))))
image drawable radius amount threshold)
image drawable filename filename)
(set! filelist (cdr filelist)))))
Gimp-user mailing list