oaustegard / Lottie_Playlist

MIT License
2 stars 0 forks source link

For sorting by lightness make use of overall image not just primary color #18

Closed oaustegard closed 2 years ago

oaustegard commented 2 years ago

Since the sort is of the complete album, which may be say a blend of dark colors, using just the dominant color is insufficient; rather an overall image lightness might yield better results.

Option A: locate algorithm to get overall image lightness Option B: make use of ColorThief palette and take average of primary colors. One problem is ColorThief does not yield weights as part of the palette Option C: rewrite ColorThief

oaustegard commented 2 years ago

Going for option C -- not so much a rewrite as a simplification. See #19, #20