首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >GIMP CLI批处理脚本错误

GIMP CLI批处理脚本错误
EN

Ask Ubuntu用户
提问于 2016-10-24 17:19:41
回答 1查看 254关注 0票数 1

我正在尝试用GIMP液体渐升插件动态更新图片。

我使用以下命令在UbuntuServer16.04LTS上执行此操作:

代码语言:javascript
复制
gimp -i -f -b "(batch-gimp-lqr-full "/var/www/liquid/uploads/feelsBadMan_2.png" "/var/www/liquid/distorts/feelsBadMan.png" 400 400 "" "" 1000 "" 1000 150 "" 7 150.0 TRUE TRUE 0 FALSE 3 0 0 FALSE 0 TRUE)" -b "(gimp-quit 0)"

在我的Windows系统上使用它很好(当然,更改输入和输出文件的字符串)。

在Ubuntu上,我得到以下错误消息:

代码语言:javascript
复制
(gimp:26440): GLib-GObject-WARNING **: g_object_set_valist: object class 'GeglConfig' has no property named 'cache-size'

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C64A60 from "gimp:point-layer-mode" to "gimp:dissolve-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C63D30 from "gimp:point-layer-mode" to "gimp:behind-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C64130 from "gimp:point-layer-mode" to "gimp:multiply-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C64540 from "gimp:point-layer-mode" to "gimp:screen-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C65A10 from "gimp:point-layer-mode" to "gimp:overlay-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C65E50 from "gimp:point-layer-mode" to "gimp:difference-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C66220 from "gimp:point-layer-mode" to "gimp:addition-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C66670 from "gimp:point-layer-mode" to "gimp:subtract-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C66A70 from "gimp:point-layer-mode" to "gimp:darken-only-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C66EA0 from "gimp:point-layer-mode" to "gimp:lighten-only-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C672D0 from "gimp:point-layer-mode" to "gimp:hue-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C67610 from "gimp:point-layer-mode" to "gimp:saturation-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C67A50 from "gimp:point-layer-mode" to "gimp:color-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C68420 from "gimp:point-layer-mode" to "gimp:value-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C68650 from "gimp:point-layer-mode" to "gimp:divide-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C68AE0 from "gimp:point-layer-mode" to "gimp:dodge-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C68EA0 from "gimp:point-layer-mode" to "gimp:burn-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C692D0 from "gimp:point-layer-mode" to "gimp:hardlight-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C69740 from "gimp:point-layer-mode" to "gimp:softlight-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C69B20 from "gimp:point-layer-mode" to "gimp:grain-extract-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C69F70 from "gimp:point-layer-mode" to "gimp:grain-merge-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C6A320 from "gimp:point-layer-mode" to "gimp:color-erase-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C6A6D0 from "gimp:point-layer-mode" to "gimp:erase-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C6AB40 from "gimp:point-layer-mode" to "gimp:replace-mode"

(gimp:26440): GEGL-gegl-operation.c-WARNING **: Cannot change name of operation class 0x1C6AEF0 from "gimp:point-layer-mode" to "gimp:anti-erase-mode"
batch command experienced an execution error:
Error: ( : 1) eval: unbound variable: /var/www/liquid/uploads/feelsBadMan_2.png

有人知道从哪里开始解决这个问题吗?

EN

回答 1

Ask Ubuntu用户

发布于 2016-10-24 17:59:22

好吧,我发现问题了。

我不得不转义参数中的引号,即将"替换为\",以防止shell在传递给GIMP之前删除它们。

就像一种魅力。谢谢大家的阅读。

票数 1
EN
页面原文内容由Ask Ubuntu提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://askubuntu.com/questions/841332

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档