Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
migrating 2.8 bash scripts to gimp 3
#5
100% not script-fu fan but I have come across that vector error before so trying this in a Mint 22.3 / Gimp 3.0.8 (from PPA).
Works but throws up warnings.

Quote:rich@rich-3:~$ gimp -i --quit --batch-interpreter=plug-in-script-fu-eval -b \
"(\
let*(\
(image (car (file-png-load 1 \"input.png\")))\
(drawable (vector(gimp-image-get-selected-drawables image) 0))\
)\
(gimp-file-save 1 image \"output.png\")\
)"

(script-fu:3401): scriptfu-WARNING **: 18:40:58.393: Calling Plug-In PDB procedures with arguments as an ordered list is deprecated.
Please use named arguments: (file-png-load #:run-mode 1 #:file input.png)

(script-fu:3401): scriptfu-WARNING **: 18:40:58.476: Missing arg type: GimpExportOptions
batch command executed successfully
INFO: a stray image seems to have been left around by a plug-in: "[output] (exported)"rich@rich-3:~$

Just a remark, but an option for Gimp 3 is the batcher plugin https://kamilburda.github.io/batcher/ It is remarkably flexible for processing files and images with layers.
Reply


Messages In This Thread
RE: migrating 2.8 bash scripts to gimp 3 - by rich2005 - 3 hours ago

Forum Jump: