Metadata-Version: 2.2
Name: color_thief_fast
Version: 1.0.3
Summary: extracting image theme colors
Author-email: Jianglong Jia <465710779@qq.com>
Project-URL: Homepage, https://github.com/jjl001/color_thief_fast
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: Pillow
Requires-Dist: numpy

### Color Thief Fast

This project is dedicated to extracting image theme colors. During the development process, we referred to
[Color Thief](https://github.com/fengsp/color-thief-py/). 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

```shell
pip install color-thief-fast
```

### Usage

```python
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](https://github.com/lokesh/color-thief/).  
Thanks to Shipeng Feng for his  [original work](https://github.com/fengsp/color-thief-py/).

### Better

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