03-01-2024, 06:14 PM
In your code I see image.undo_group_start() but you image variable is called img so that should be img.undo_group_start() (and of course img.undo_group_end()) You can also add a try/except block in your code to catch all errors and report them with a gimp.message().