Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ssiyad/getpalette
Find dominant colors in images
https://github.com/ssiyad/getpalette
color-scheme cross-platform image-processing linux macos matplotlib palette pillow python python3 windows
Last synced: 5 days ago
JSON representation
Find dominant colors in images
- Host: GitHub
- URL: https://github.com/ssiyad/getpalette
- Owner: ssiyad
- License: mit
- Created: 2019-11-17T08:12:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-10-03T23:37:32.000Z (about 1 year ago)
- Last Synced: 2024-09-17T02:32:20.217Z (about 2 months ago)
- Topics: color-scheme, cross-platform, image-processing, linux, macos, matplotlib, palette, pillow, python, python3, windows
- Language: Python
- Size: 383 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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] imagepositional arguments:
imageoptional 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](https://github.com/ssiyad/getpalette/blob/master/Example/example_palette.jpg)### Image with Palette
![alt text](https://github.com/ssiyad/getpalette/blob/master/Example/example_with_palette.jpg)## Contribution
- Report issues
- Open pull request with improvements
- Spread the word
---