简体   繁体   English

在 Windows 命令行错误中使用 Gimp 脚本

[英]Using Gimp script in windows command line Error

I try using this script to convert.PSD with using a certain script.我尝试使用此脚本通过使用特定脚本来转换.PSD。

This is my code:这是我的代码:

@echo off

set gimp="c:\Program Files\GIMP 2\bin\gimp-console-2.8.exe"

%gimp% -i -b '(flatten-layer-groups 1 test.psd)' -b '(gimp-quit 0)'

but he does not work, with this error:但他不工作,有这个错误:

(gimp-console-2.8.exe:1336): LibGimpBase-WARNING **: gimp-console-2.8.exe: gimp_
wire_read(): error
GIMP-╬°шсър: ═хтючьюцэю юЄъЁ√Є№ 'c:\Work\Test\1': No such file or directory

GIMP-╬°шсър: ═хтючьюцэю юЄъЁ√Є№ 'c:\Work\Test\test.psd)'': No such file or direc
tory

GIMP-╬°шсър: ═хтючьюцэю юЄъЁ√Є№ 'c:\Work\Test\0)'': No such file or directory

Please Help me!请帮我! Thank you!谢谢!

I think you need to use double qoutes, something like我认为你需要使用双引号,比如

%gimp% -i -b "(flatten-layer-groups 1 \"test.psd\")" -b "(gimp-quit 0)" %gimp% -i -b "(flatten-layer-groups 1 \"test.psd\")" -b "(gimp-quit 0)"

See this link看到这个链接

For example xd function opens c.jpeg which is on desktop on Windows 10 for Gimp version 2.10例如 xd 函数打开 c.jpeg,它位于 Windows 10 的桌面上,用于 Gimp 版本 2.10

gimp-2.10 -b "(xd \"C:\\Users\\YourUsername\\Desktop\\c.jpeg\")"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM