gimp_image_get_thumbnail_data() is not introspectable
gimp_image_get_thumbnail_data()
returns a uint8
array and 3 arguments (width, height, bpp) which can be used to calculate the size of the returned array. Unfortunately, that's not something bindings can use.
Solutions:
- Add another argument which can be used to store the pointer
- Return a
GBytes*
struct, which combines data and its length - Create a new class for a set of data which has a width, height and bpp, and return that