Closed 0xARROWK closed 3 years ago
Color Thief‒one of the backends supported by pywal‒appears to make it very easy to go from a PIL.Image
to its dominant color. In my limited testing, the palettes it generates aren't quite as nice as the ones from the Haishoku backend, but it seems to be the only one that doesn't require a path to a file in order to do its work.
Okay, thank you for your answer ! Finally it seems that saving the image does not take too much time and does not reduce performance (for this I use the JPEG compression format, which is much faster than the PNG format).
Hi !
I write a script to stream the screen and detect the most present colour. However the colour detected as the most present is not very accurate, so I thought of using pywal which does the job much better while being very fast.
However, I retrieve images from PIL and I saw that pywal only accepts input paths. I don't know python that well, do you know if there is a way to provide the image to the module without saving the image to disk?
Here is an example of what I want to do :