Gimp.Image.prototype.is_valid

function is_valid(): Boolean {
    // Gjs wrapper for gimp_image_is_valid()
}
  

Returns TRUE if the image is valid.

This procedure checks if the given image is valid and refers to an existing image.

Since 2.4

Returns

Whether the image is valid.