prettyPic
A fairly simple image utility library that has one single purpose: to extract the dominant color from an image.
Installation
pip install prettyPic
Usage
from prettypic import color_from_image
color = color_from_image('path/to/image.png')
print(color.color)
KMeans or DBSCAN
from prettypic import color_from_image
color = color_from_image('path/to/image.png', algorithm='kmeans')
# or
color = color_from_image('path/to/image.png', algorithm='dbscan')
Response
color.color # (r, g, b)
color.color_as_image # PIL.Image
color.color_as_rgb # rgb(rrr, ggg, bbb)
License
Metadata
Release files for prettyPic 1.2.1
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 | |
|---|---|---|---|---|
| prettypic-1.2.1.tar.gz | 6.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| prettypic-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.2 kB
Release files / prettypic-1.2.1.tar.gz
| Download URL | prettypic-1.2.1.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
af96e399251f0acacd807f11e9a1cf868c58e34493160cb626d6b0ac33210b6e
|
|
BLAKE2b-256 checksum How to use checksums |
ad14b2aa882933530ce9aceda38680cbe2f1d647017caea2206968d7f684f7ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
|
Release files / prettypic-1.2.1-py3-none-any.whl
| Download URL | prettypic-1.2.1-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b44a4c9d1ea5a65de898e6618eb846ec3884290b71e3c5cd7373a7e263719392
|
|
BLAKE2b-256 checksum How to use checksums |
35ac237be2298afd11adbb32777a49e3768012345e46ac26a49fa4ceba567d98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.4 Linux/5.15.0-1041-azure
|
Security for prettyPic 1.2.1
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.