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

Uploaded Python 3

File details

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

File metadata

  • Download URL: color_thief_fast-1.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b290c3ab59548eb0cb7a0e7d647394950191c39475e7c9291a1e90aa76197e82
MD5 82c05621c2abe56903786c96afabed77
BLAKE2b-256 b385a4cf01bec40665f36930b2bf60e9f539d6c8ff8a68d07ddb4a48b98009e3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for color_thief_fast-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d27f4c6e94b3ff544b86626ad1ecd30c4693bf47e462a9cc38ea101e7bae2d38
MD5 08d3ef2d3ecfacdec15aa2c8ec6c3778
BLAKE2b-256 c5693895cbdaf32c87776c1e9beed56ab2cd342397b04d0c1fb63024c056009f

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