Get color palette from images
Project description
GetPalette
Find the dominant colors in any image
Setup
git clone https://github.com/ssiyad/getpalette
cd getpalette
python3 -m venv env
source venv/bin/activate
pip install -e .
or
pip install getpalette
Usage
getpalette [-h] [-c COUNT] [-s] image
positional arguments:
image
optional arguments:
-c COUNT, --count COUNT
Number of colors to find
-s, --show Show/Hide hexadecimal color values
-h, --help show this help message and exit
Output
The tool will output two files into the main folder your image was initially in. The first file will be named IMAGE_palette and will contain just the color palette. The second file will be called IMAGE_with_palette and this will contain the original image with the palette below it.
Examples:
Output Palette
Image with Palette
Contribution
- Report issues
- Open pull request with improvements
- Spread the word
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
getpalette-1.0.5.tar.gz
(4.4 kB
view hashes)
Built Distribution
Close
Hashes for getpalette-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7bcd48ff63344adfade065832f9aa4007d9be4bc6e40ca8ba49a9574f697a0f3 |
|
MD5 | 9828c97095781e6564ccf2d9fbde90e0 |
|
BLAKE2b-256 | 3afd2306157f28321d17ec4c7746fd867b1cb1686cc2cdaa8c31bfc4b69f1b66 |