Gimp.Image.prototype.get_id

function get_id(): Number(gint32) {
    // Gjs wrapper for gimp_image_get_id()
}
  

Since 3.0

Returns

the image ID.