Skip to main content

extracting image theme colors

Project description

Color Thief Fast

This project is dedicated to extracting image theme colors. During the development process, we referred to Color Thief. and greatly improved the processing speed by introducing the numpy library.

  1. High performance processing With the powerful array computing power of numpy, the speed has been increased by more than 5 times, and compared to traditional methods, the performance has been significantly optimized.
  2. Custom pixel processing Support users to customize pixel processing according to their own needs, meeting diverse image processing requirements

Installation

pip install color-thief-fast

Usage

from colorthief import ColorThief

color_thief = ColorThief('/path/to/imagefile')
# get the dominant color
dominant_color = color_thief.get_color(quality=1)
# build a color palette
palette = color_thief.get_palette(color_count=6)

Thanks

Thanks to Lokesh Dhakar for his original work.
Thanks to Shipeng Feng for his original work.

Better

If you feel anything wrong, feedbacks or pull requests are welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

color_thief_fast-1.0.3.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

color_thief_fast-1.0.3-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file color_thief_fast-1.0.3.tar.gz.

File metadata

  • Download URL: color_thief_fast-1.0.3.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.0

File hashes

Hashes for color_thief_fast-1.0.3.tar.gz
Algorithm Hash digest
SHA256 b69be54de45db017769211b1719bf72f438a180b399e1d9dcfe3d2b5bb113740
MD5 9a555d797e65a97fc941fabe666021d1
BLAKE2b-256 367a8a95db21b08a3a75fa75e04d8927d3599245e99c87fa672d0d7444303776

See more details on using hashes here.

File details

Details for the file color_thief_fast-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for color_thief_fast-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 823e04b392eace850005880748a7e1759125d196de73265b3fc62d6cb5c74caa
MD5 3ea79bf673fd4f7ff1be7b6a131e4a08
BLAKE2b-256 fc0cdf8c529063593871f519fc76b354f21c80ed473edc39888496522fa0369c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page