Gimp.Image.prototype.get_palette

function get_palette(): Gimp.Palette {
    // Gjs wrapper for gimp_image_get_palette()
}
  

Returns the image's colormap

This procedure returns the image's colormap as a GimpPalette. If the image is not in Indexed color mode, null is returned.

Since 3.0

Returns

The image's colormap.