Introduction :
ColorThief
reimagined
modern_colorthief
?
Why use - It is built on modern standards (
colorthief
uses customcached_property
) - I want innovations to happen in
colorthief
(optimize algorithms? make everything faster?) - I want to optimize parts of
colorthief
(maybe rewrite in a compiled language?) - Automated test to make sure
colorthief
andmodern_colorthief
gives the same output
modern_colorthief
?
Why shouldn't you use modern_colorthief
does not support EOL python versions.
Requirements :
Pillow
- Python 3
Examples :
Here is a minimal example :
from modern_colorthief import ColorThief
image = '' # Path to a image
ColorThief(image).get_color()
colorthief
:
Migration from - from colorthief import ColorThief
+ from modern_colorthief import ColorThief
image = '' # Path to a image
ColorThief(image).get_color()
Used Internally by :
Contributing :
If you like this project add a star. If you have problems or suggestions please put them in the Issue Tracker If you like to add features. Fork this repo and submit a Pull Request. 😛
Roadmap :
You tell me. If i have free time, I will implement it.