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.
- 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.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b290c3ab59548eb0cb7a0e7d647394950191c39475e7c9291a1e90aa76197e82
|
|
| MD5 |
82c05621c2abe56903786c96afabed77
|
|
| BLAKE2b-256 |
b385a4cf01bec40665f36930b2bf60e9f539d6c8ff8a68d07ddb4a48b98009e3
|
File details
Details for the file color_thief_fast-1.0.1-py3-none-any.whl.
File metadata
- Download URL: color_thief_fast-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d27f4c6e94b3ff544b86626ad1ecd30c4693bf47e462a9cc38ea101e7bae2d38
|
|
| MD5 |
08d3ef2d3ecfacdec15aa2c8ec6c3778
|
|
| BLAKE2b-256 |
c5693895cbdaf32c87776c1e9beed56ab2cd342397b04d0c1fb63024c056009f
|