06-22-2019, 05:15 AM
You don't need to provide the "run-mode" parameter ; and the variable for your new image is 'new_image', no 'new_img'.
So, replace
by
So, replace
Quote:pdb.gimp_file_save(1, new_img, layer, outputpath, 'AAA_TEST.png')
by
Quote:pdb.gimp_file_save(new_image, layer, outputpath, 'AAA_TEST.png')