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.2.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.2-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: color_thief_fast-1.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 187fc31900e387008a5256aad71fd49728e40747b58ca5dea6c77e4a03ceb6fd
MD5 a02293d824b182fb06671e22b4d3a400
BLAKE2b-256 00fb823dff0c2bea737b364c2765c4afe0ca7f31e0a2dd08d76f37f14fadfd98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for color_thief_fast-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b0690cc7e1e6f5776c5bc30dc49b1a1f6e1a79e63cfdf3bcb9afa8ee7df1aaec
MD5 011ea82822521ce039b654b67a6a6501
BLAKE2b-256 5660ae90913e5e8300dc12a20080cadb55ddd4af1fe57259dee460d42ad5e690

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