I've got a Python plugin that generates a new Gimp image.
I would now like the user to confirm the filename & save location first. Is there a recommended method?
I can automatically force export, but I would prefer to trigger the
File → Export As dialog on the new image - is this possible?
pdb.gimp_file_save(image, drawable, "c:\\testa.bmp", "c:\\testa.bmp")
On v2.10.20-1 I tried using ...
filename = pdb.file_bmp_save(0, image, drawable, "c:\\testa.bmp")
but get errors like:
Procedure 'gimp-item-get-name' has been called with value '5' for argument 'item' (#1, type GimpItemID). This value is out of range.
Does the above code look correct? The pdb documention for file-*-save commands is a little cryptic!
gimp_export_dialog_new() documented in gimplib looks promising, but I can't figure out how to call it from Python.
Cheers,
moon