我在使用GIMP batch commands in WSL时遇到了麻烦。
我有一个包含多个.png
文件的文件,我正在尝试使用gimp批处理对所有文件应用阈值,gimp中的文档说明了如何运行命令,但是在运行脚本几乎是从文档中复制的。
这里有一些尝试错误对
gimp -i -b '(gimp-drawable-threshold "*.png" 6 0 0.5)' -b '(gimp-quit 0)'
batch command experienced an execution error:
Error: Invalid type for argument 1 to gimp-drawable-threshold
类似于
gimp -i -b '(gimp-threshold "*.png" 0 0.5)' -b '(gimp-quit 0)'
batch command experienced an execution error:
Error: Invalid type for argument 1 to gimp-threshold
我在文档中找不到GIMP中ScriptFu的参数编号方式,因此我首先认为第一次尝试中的6个是错误的,但是对gimp-threshold的测试表明它没问题。
意识到"*.png"
可能是错误的,我四处搜寻,发现有人用转义符(\"
来写文件名参数,但是那也不起作用。
任何帮助将不胜感激!