get-my-palette-from-image is a python library for extracting and manipulating palettes from images
Project description
get-my-palette-from-image
get-my-palette-from-image is a python library for extracting and manipulating palettes from images
Overview
- Input: image, URL
- Functions:
- extract palettes with self-defined numbers of colors from given images
- shuffle/modify extracted palettes
- obtain the percentages of colors from given images
- find/generate posters/images based on extracted palettes
Installation
pip install get-my-palette-from-image
Usage
from my_palette import PaletteCreation
palette = PaletteCreation()
# load image locally
modified_image = palette.load_image('down.jpg')
# load image via url
modified_image_url = palette.load_image_url(
'https://apod.nasa.gov/apod/image/2212/SkyArt_Cobianchi_2048.jpg')
# obtain the percentage of colors from the given image
percentage = palette.get_color_percentages(modified_image, 5)
# get a palette from given image with a self-defined number of colors
the_palette = palette.get_palette(modified_image, 5)
# get a complementary palette from given image with a self-defined number of colors
complementary_palette = palette.get_complementary_palette(
modified_image, 5)
# get a palette consisted of a self-defined number of colors with the least percentages
least_palette = palette.get_least_palette(modified_image, 3)
# get a palette consisted of a self-defined number of colors with the most percentages
most_palette = palette.get_most_palette(modified_image, 3)
Development
Read the CONTRIBUTING.md file.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for get-my-palette-from-image-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 789ef864f5939452d05339a526b86ba0b580c55d6ed2f5f22c0de1aa0e4a6ce1 |
|
MD5 | 1a92ab68bb211b1d0be62c49e8b871e2 |
|
BLAKE2b-256 | ac7a944e63cd38f6468c130f04a15781c27795ed6653e34876d661501dc0993c |
Close
Hashes for get_my_palette_from_image-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bab2990d652009bda6c9a192b8a76fa4b3471219b05e2fbe86909005ea1de18 |
|
MD5 | 679c91cea2e133344243db5bd44ce1f8 |
|
BLAKE2b-256 | b790c054511c8f1ecd83608e721ada48ed8f0661c9ce079d4d0c92d713444ee4 |