Palette Extract

Extract dominant colours from an image using the same k-means++ algorithm as the Colour Memory app. Accepts a public image URL or base64-encoded image. Returns hex values with proportional weights sorted by luminance. Optionally applies grey card white balance correction before extraction. Optionally runs palette/analyse on the results if analyse=True.

post/palette/extract

Request

  • Base URL: https://api.colourmemory.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.colourmemory.com/palette/extract
  • Auth: none declared

Headers

x-api-keystring nullable

Request body

image_idstring nullable
image_urlstring nullable
image_base64string nullable
kinteger
grey_card_hexstring nullable
analyseboolean
style_contextstring nullable
archivestring nullable

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.