我正在尝试使用GIMP Liquid Rescale 插件。
我在我的 Ubuntu Server 16.04 LTS 上使用以下命令执行此操作:
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 上,我收到以下错误消息:
(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
有人知道从哪里开始解决这个问题吗?
答案1
好的,我找到问题了。
我必须转义参数中的引号,即替换"
为\"
,以防止 shell 在将它们传递给 GIMP 之前删除它们。
效果非常好。感谢大家的阅读。