Skip to main content

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

alt text

Image with Palette

alt text

Contribution

  • Report issues
  • Open pull request with improvements
  • Spread the word

Metadata

Release files for getpalette 1.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getpalette 1.0.7
File Size Uploaded
getpalette-1.0.7.tar.gz 97.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for getpalette 1.0.7
File Interpreter ABI Platform
getpalette-1.0.7-py3-none-any.whl Python 3 none any Details

Total release size: 194.4 kB

Release files / getpalette-1.0.7.tar.gz

Download URL getpalette-1.0.7.tar.gz
Size 97.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9564f4db0ae3a352068d1af48914ece007d0e350ff47951a77ec3b27f930d892
BLAKE2b-256 checksum
How to use checksums
33799bd027f27b41fdd39256230be3700332593f3af1eeca90e2ed810cdf3ca5
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / getpalette-1.0.7-py3-none-any.whl

Download URL getpalette-1.0.7-py3-none-any.whl
Size 97.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
40945d14d6fedc8b31e2c5c29f252c88392f86714a71503737d91aebad197c35
BLAKE2b-256 checksum
How to use checksums
eb9a29496a625bd74862fada5dff1881eaac43733e80d1251e82191143843507
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.7 This release

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page