Batch Blending Images - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: Batch Blending Images (/Thread-Batch-Blending-Images) |
Batch Blending Images - ruairiseosamh - 11-23-2022 Hello, I'm trying to blend two folders of images together using mode LCh Colour. I can get it working for one image at a time but am struggling to automate it. I have tried Python-fu and BIMP, but haven't been able to get them to work for this problem. Any advice? Thanks RE: Batch Blending Images - Ofnuts - 11-23-2022 (11-23-2022, 03:50 PM)ruairiseosamh Wrote: Hello, What have you tried with Python-fu? RE: Batch Blending Images - ruairiseosamh - 11-24-2022 I'm a bit new to this, but I have written this plugin (attached). I've followed the steps that I have seen on the internet. But it won't show up in my GIMP menu. RE: Batch Blending Images - Ofnuts - 11-24-2022 Since you are on OSX, make sure the python file is marked as executable. Your filter (my_filter function) takes takes two arguments: image and drawable/layer, so you registration should declare txwo arguments (first pair of brackets after the "*", a PF_IMAGE and a PF_DRAWABLE. Otherwise, it's hard to debug a screenshot. You can either past the code here (insert as a code block, see icons above the text area to to the right, you want the one just before the php one), and zip it and attach the zip. If you start Gimp from a terminal, all the python errors will be displayed in said terminal (together with the output of any `print' instructions in you code, which is very helpful when debugging). RE: Batch Blending Images - ruairiseosamh - 11-28-2022 I got it to work. Thanks. |