所以我尝试运行本教程中的批处理代码:http: //www.gimp.org/tutorials/Basic_Batch/
我将其复制并保存到 .gimp-2.8 脚本文件夹
(define (batch-unsharp-mask 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-file-save RUN-NONINTERACTIVE
image drawable filename filename)
(gimp-image-delete image))
(set! filelist (cdr filelist)))))
并运行命令:
gimp-2.8 -i -b '(batch-unsharp-mask "*.png" 5.0 0.5 0)' -b '(gimp-quit 0)'
但我得到了错误
Error: ( : 1) eval: unbound variable: *.png
这似乎不是脚本的问题;可能是我称呼它的方式,或者我错过了一些东西,但我无法弄清楚。