pastel icon indicating copy to clipboard operation
pastel copied to clipboard

Pick colours from an image

Open awaisamjad opened this issue 2 months ago • 1 comments

Are there plans to add a feature to extract colours from images?

Example

pastel extract <image> -n 5 which would return the 5 most present colours in the image.

Thank you

awaisamjad avatar Nov 04 '25 11:11 awaisamjad

Interesting idea.

the 5 most present colours

How does this work? If there is a large patch of different oranges, and a smaller patch of blues in an image, how do we make sure to get both blue and orange... and not just five different oranges?

Principal component analysis? Or something similar?

sharkdp avatar Nov 09 '25 21:11 sharkdp