Image attribute issues
GIMP V2.99.14 flatpak on a laptop running Linux Mint 21.1 Cinnamon
GIMP V2.99.15 self-built on a desktop PC running Linux Mint 21.1 Cinnamon
I have a Python plugin that needs to obtain a list of the layers in an image (in fact there will only ever be a single layer although I don't think that this is relevant).
I can't find any documentation but I have found four Image object attributes that the script could use:
Image.get_selected_drawables() - this works in flatpak V2.99.14 but fails in self-build V2.99.15
Image.get_selected_layers() - this fails in flatpak V2.99.14 but works in self-build V2.99.15
Image.get_layers() - this fails in flatpak V2.99.14 but works in self-build V2.99.15
Image.list_layers() - this works in both of the versions.
The following is representative of the failure messages:
'Image' object has no attribute 'get_layers' Did you mean 'list_layers'?
Why the differences between the two versions?
I'm unsure where to look in the V2.99.15 self-build files to determine where the differences lie - any suggestions gratefully received.