Unable to call pdb.gimp_image_reg from python - RuntimeError: execution error
Status: Beta
Brought to you by:
btab
HI Behnam,
I am using your new 2.0.0 version of Image Registration (thanks! By the way)
Trying to run it is a batch using PythonFu, but I encounter an error:
Traceback (most recent call last): File "<input>", line 1, in <module> RuntimeError: execution error
Manually running the plugin works without error. I have also tried different images without issue.
Running GIMP 2.10.20 (revision1)
Windows platform
Steps to reproduce
Open GIMP
Filters > Python Fu
target_filename = "C:/testing/target.JPG" reference_filename = "C:/testing/reference.JPG" new_image = pdb.gimp_file_load(target_filename, 'target') ref_image = pdb.gimp_file_load(reference_filename, 'reference') gimp.Display(new_image) gimp.Display(ref_image) pdb.gimp_image_reg(new_image, new_image.active_layer, ref_image.active_layer, 0, 0, 50, 6, 2, 0)
Thanks for any assistance you can provide.
Shane
Hi Shane,
Thank you for reporting the problem.
Thank you very much also for providing the steps to reproduce the problem.
I will need some time to analyze the problem. I will reach out back to you as soon as I have more information.
Cheers,
Behnam
Hi Shane,
I have uploaded an updated version 2.0.1 of the plug-in. The problem should be resolved
in this version.
Cheers,
Behnam
PS. This is the script that I have been using for testing the non-interactive use of the plug-in: