/modern_colorthief

Colorthief but with modern codes

Primary LanguageRustMIT LicenseMIT

Introduction :

ColorThief reimagined

Why use modern_colorthief ?

  • It is built on modern standards (colorthief uses custom cached_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 and modern_colorthief gives the same output

Why shouldn't you use modern_colorthief ?

  • modern_colorthief does not support EOL python versions.

Requirements :

Examples :

Here is a minimal example :

from modern_colorthief import ColorThief

image = '' # Path to a image

ColorThief(image).get_color()
If you want a comprehensive example please visit the test file

Migration from colorthief :

- 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.