Gimp.Image.prototype.get_thumbnail_data
function get_thumbnail_data(width: Number(gint), height: Number(gint)): [return_value: ByteArray, width: Number(gint), height: Number(gint), bpp: Number(gint)] {
// Gjs wrapper for gimp_image_get_thumbnail_data()
}
Get a thumbnail of an image.
This function gets data from which a thumbnail of an image preview can be created. Maximum x or y dimension is 1024 pixels. The pixels are returned in RGB[A] or GRAY[A] format. The bpp return value gives the number of bytes per pixel in the image.
- width
The requested thumbnail width.
- height
The requested thumbnail height.
- return_value
the thumbnail data.
- width (out)
The requested thumbnail width.
- height (out)
The requested thumbnail height.
- bpp
The previews bpp.