Modern input support
Use image elements, canvas, ImageBitmap, URL strings, Blob, or File objects.
Tiny image intelligence for the browser
Get a dominant color and palette from images, canvases, blobs, URLs, or image elements with callback and Promise APIs.
Use image elements, canvas, ImageBitmap, URL strings, Blob, or File objects.
Keep existing callback code or use the async API in modern application flows.
Choose exact RGB counting, fast buckets, or median-cut quantization for balanced palettes.
Interactive demo
The uploader runs locally in your browser and shows the detected dominant color for each image.