How can I get the dominant color of an image as rgb or hexcode?
I found a script called Color Thief but it does not allow image URLs only paths.
How can I get the dominant color of an image as rgb or hexcode?
I found a script called Color Thief but it does not allow image URLs only paths.
If you don't want to download unnecessary file, do it this way:
use
urllib
to download the image first, then delete the unnecessary file: