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.7.tar.gz
(97.4 kB
view details)
Built Distribution
File details
Details for the file getpalette-1.0.7.tar.gz
.
File metadata
- Download URL: getpalette-1.0.7.tar.gz
- Upload date:
- Size: 97.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
9564f4db0ae3a352068d1af48914ece007d0e350ff47951a77ec3b27f930d892
|
|
MD5 |
f528ad41725d93a8f474d3ba9e0e462a
|
|
BLAKE2b-256 |
33799bd027f27b41fdd39256230be3700332593f3af1eeca90e2ed810cdf3ca5
|
File details
Details for the file getpalette-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: getpalette-1.0.7-py3-none-any.whl
- Upload date:
- Size: 97.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
40945d14d6fedc8b31e2c5c29f252c88392f86714a71503737d91aebad197c35
|
|
MD5 |
85c6de50d8feebfa724a53144de621fd
|
|
BLAKE2b-256 |
eb9a29496a625bd74862fada5dff1881eaac43733e80d1251e82191143843507
|