Answer the question
In order to leave comments, you need to log in
What library can be used?
Hello.
Prompt the library for determining the brightness of the image, by the average value of the brightness of all pixels.
Determining the dominant color in an image.
I can write it myself, but I suspect there are already many such libraries.
The task is to implement changes in the background color, depending on the dominant color of the image, as in iTunes on the music page. album.
Answer the question
In order to leave comments, you need to log in
lokeshdhakar.com/projects/color-thief
https://github.com/rythgs/jquery.primarycolor.js
https://www.sitepoint.com/4-detect-darklight-backg...
In general, there are a lot of them: ))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question