LanceGin / haishoku

A development tool for grabbing the dominant color or representative color palette from an image
MIT License
281 stars 28 forks source link

Question: comparison with colorthief #12

Open Lucas-C opened 2 years ago

Lucas-C commented 2 years ago

Another Python library provides the same functionality: colorthief.

However both libs do not return the same palette:

palette

The first line of colored circles is the palette from colorthief, the second line is the palette from haishoku.

Why do they differ so much?

( Source image: doom slayer by tis1451 - CC BY-SA 3.0 )

Wolf-SO commented 1 year ago

Interesting starting point for a deeper research. I'd say it's not easy to get an 8-color palette from this picture I already found more than 16 different colors in (ignoring antialiasing artifacts):

rect360