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)
# get a palette with consisted of a self-defined number of similar colors from the given image and given color schema.
# the color schema includes red, blue, green, yellow, black, white, purple, orange, and pink
similar_palette = palette.get_similar_palette(modified_image, 3, 'black')
Development
Read the CONTRIBUTING.md file.
Metadata
Release files for get-my-palette-from-image 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| get-my-palette-from-image-0.1.3.tar.gz | 31.8 kB | Without provenance | Details for get-my-palette-from-image-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| get_my_palette_from_image-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for get_my_palette_from_image-0.1.3-py3-none-any.whl |
Total release size: 55.3 kB
Release files / get-my-palette-from-image-0.1.3.tar.gz
| Download URL | get-my-palette-from-image-0.1.3.tar.gz |
|---|---|
| Size | 31.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3e94e290c712c9fa57ba306cfdfc4430f60b8b480ff32f1a0c3f0ce72dac8a9f
|
|
BLAKE2b-256 checksum How to use checksums |
317b693d9ee76686a13a6bb87dd901f47eb826d5a925cf75fc89ccbdadc8acda
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / get_my_palette_from_image-0.1.3-py3-none-any.whl
| Download URL | get_my_palette_from_image-0.1.3-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c59daa88b636eccb3ce996a693163a2d299c3d35d07d21d3d81cb4f3571f235f
|
|
BLAKE2b-256 checksum How to use checksums |
56edc7a1fcc03eb1da0f2d2cd61f713fdeb44648ad114daebdf9937a8e9f9072
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for get-my-palette-from-image 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.