Socket
Book a DemoInstallSign in
Socket

modern-colorthief

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modern-colorthief

0.1.7
pipPyPI
Maintainers
1

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.

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.