Photosynthetic
Photosynthetic is a python library that uses a unique clustering and distance algorithm to determine the perceptual color palette of an image. It offers a high degree of flexibility and configuration, allowing you to dial it in for post-processed images, illustrations, low-saturation, or product images!
A few examples of what you could do with this library:
- Create a fun, albeit useless, image host centered around color palettes like : https://photosynther.net
- Determine the primary color of product images for your eCommerce merchandising pipeline
- Have fun!
- Combine reference images into a brand guide or design system
- Automatically change themes based on profile images
- And probably at least a little but more
Usage:
This library can be used one of two ways, you can import the package into your own project and use it as a library, or you can use it via the command line by passing in an image filepath as the first argument
Command Line Usage
python main.py path/to/file.png
Library Usage
Quickstart (Will extract a palette using sane and generic analysis defaults)
from photosynthetic.Palette import Palette
p = Palette('images/test.png')
palette = p.extract()
print(palette)
# Returns :
#
Metadata
Release files for photosynthetic 0.0.16
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 |
|---|---|---|---|---|
| photosynthetic-0.0.16.tar.gz | 178.8 kB | Without provenance | Details for photosynthetic-0.0.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| photosynthetic-0.0.16-py3-none-any.whl | Python 3 | none | any | Details for photosynthetic-0.0.16-py3-none-any.whl |
Total release size: 363.5 kB
Release files / photosynthetic-0.0.16.tar.gz
| Download URL | photosynthetic-0.0.16.tar.gz |
|---|---|
| Size | 178.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d666cc2fb51f2b8bcfbff9e88bc8de9f570c0d67a4f48247b34efbd6b3910be
|
|
BLAKE2b-256 checksum How to use checksums |
bf0125f6490667d0ce74a5540f01282bdac9e45fb01f818c9d57988ecb624636
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0
|
Release files / photosynthetic-0.0.16-py3-none-any.whl
| Download URL | photosynthetic-0.0.16-py3-none-any.whl |
|---|---|
| Size | 184.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14fdedcbd6976608e581903422ba0e0152e91ec809f912526eca6b568bdeaea5
|
|
BLAKE2b-256 checksum How to use checksums |
eae85ae28d850945327dce0a554670901b8c71259f4727e9ec759ee103a90789
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.0
|
Security for photosynthetic 0.0.16
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.