Skip to content

baseplate-admin/modern_colorthief

Folders and files

NameName
Last commit message
Last commit date

Latest commit

cbc1028 Â· Mar 25, 2025
Dec 6, 2024
Jul 4, 2024
May 22, 2024
Oct 11, 2024
May 22, 2024
May 20, 2024
May 13, 2024
Dec 3, 2024
Mar 25, 2025
Mar 25, 2025
May 13, 2024
May 18, 2024
May 14, 2024
Dec 23, 2024
Oct 15, 2024

Repository files navigation

Documentation Status Downloads Pypi Badge

Introduction :

ColorThief reimagined

Why use modern_colorthief ?

  • It's backend is written in rust

Why shouldn't you use modern_colorthief ?

  • modern_colorthief does not support EOL python versions.

Requirements :

  • Python 3

Examples :

Here is a minimal example :

from modern_colorthief import get_color

path = ...

print(get_color(path, 10))
If you want a comprehensive example please visit the test file

Migration from colorthief :

- from colorthief import ColorThief
+ from modern_colorthief import get_color, get_palette


image = '' # Path to a image

- ColorThief(image).get_color()
+ get_color(image)


- ColorThief(image).get_palette()
+ get_palette(image)

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.