Missing introspection functions in the gimp API
Operating System: OpenBSD
Description of the feature
script-fu does have functions to extract text from text layers, however those are not maximally useful, because they only work on text layers.
It would be very useful to have something like gimp-layer-get-text and gimp-layer-get-markup that would apply to all layers.
(I could have a go at implementing this if there's interest)
Use cases
In my workflow, I often have images with modified text layers (either cropped to content, or transformed through perspective and other transformations) gimp keeps the text/markup information: if you choose the text tool and decide to edit the text layer then gimp will happily propose to retrieve that information from the NON TEXT layer, but there is no script-fu API to access that information.
Refer to https://github.com/marcespie/gimp-extract-text/
I use it to index images with text, but it's not maximally useful, because I have to deal with any transformed layer by hand.