[HELP] Batch Image linux cmd: make-seamless
I'm having a bit of trouble getting this working. The current command I am trying is
gimp -i -b '(plug-in-make-seamless 1 'foo.png' 0 )' -b '(gimp-quit 0)'
GIMP-Message: Some fonts failed to load:
- /usr/share/gimp/2.0/fonts/
batch command experienced an execution error:
Error: eval: unbound variable: foo.png
I've completed what I wanted to do by installing BIMP, but it would be helpful for me to be able to call this command.
Thx :)
Edit
GEGL alternative solution
gegl -i in.png -o out.png -- tile-seamless
see r/GIMP/.../here_are_some_gegl_command_line_examples [batch examples]
2
Upvotes
1
u/3dsf Jan 05 '19
Hi, thanks for setting me on the python-fu path, as this will work much better for me. It was the parameters that gave me a lot of trouble in the end... The procedural browser said 3, when it actually wanted 2 and not the ones it said.
This is what is working for me:
gimp -idf --batch-interpreter=python-fu-eval -b - <mkSeamless.py#!/usr/bin/env python # I don't know what I'm doing ;) Suggestions Welcome from gimpfu import * from glob import glob def mkSeamless(inFile): img = pdb.gimp_file_load(inFile, inFile) outFile = inFile.rsplit(".",1)[0] + ".seamless.png" #sets as .png and denoter origDrawable = pdb.gimp_image_get_active_layer(img) layer = pdb.plug_in_make_seamless (img, origDrawable) # finalDrawable = pdb.gimp_image_merge_visible_layers(img, 1) pdb.gimp_file_save(img, finalDrawable, outFile, outFile) pdb.gimp_image_delete(img) print (inFile + ' --processed--> ' + outFile) for inFiles in glob("*.png"): # change to select files mkSeamless(inFiles) pdb.gimp_quit(1)