get_close_image_palette method

get_close_image_palette

Gets color palette from raster image (palletizes image) in case the image does not have one. In case palette exists it will be used instead performing calculations.

Returns

The color palette which starts with the most frequent colors from the image and contains entries_count entries.

def get_close_image_palette(self, image, entries_count):
    ...
ParameterTypeDescription
imageRasterImageThe raster image.
entries_countintThe desired entries count.

See Also