Gimp.Drawable.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_drawable_get_thumbnail_data()
}
  

Retrieves thumbnail data for the drawable identified by drawable. The thumbnail will be not larger than the requested size.

width

the requested thumbnail width (<= 1024 pixels)

height

the requested thumbnail height (<= 1024 pixels)

return_value

thumbnail data or null if drawable is invalid.

width (out)

the requested thumbnail width (<= 1024 pixels)

height (out)

the requested thumbnail height (<= 1024 pixels)

bpp

the bytes per pixel of the returned thubmnail data