錯誤所以我試圖從本教程運行批處理代碼: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
這似乎不是腳本的問題;可能是我打電話給我的方式,或者我錯過了一些東西,但我無法弄清楚。
此頁面沒有提供的答案來修復這個問題規定錯誤.......... 錯誤:(1)EVAL:未綁定變量:* .PNG –