Perform color and palette analysis on images
Project description
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 :
#
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
File details
Details for the file photosynthetic-0.0.16.tar.gz
.
File metadata
- Download URL: photosynthetic-0.0.16.tar.gz
- Upload date:
- Size: 178.8 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d666cc2fb51f2b8bcfbff9e88bc8de9f570c0d67a4f48247b34efbd6b3910be |
|
MD5 | 8d6f050f7f9d6b6d88aaf436949c2dc0 |
|
BLAKE2b-256 | bf0125f6490667d0ce74a5540f01282bdac9e45fb01f818c9d57988ecb624636 |
File details
Details for the file photosynthetic-0.0.16-py3-none-any.whl
.
File metadata
- Download URL: photosynthetic-0.0.16-py3-none-any.whl
- Upload date:
- Size: 184.7 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 14fdedcbd6976608e581903422ba0e0152e91ec809f912526eca6b568bdeaea5 |
|
MD5 | 5945f606906bb0aefe4a27830105b655 |
|
BLAKE2b-256 | eae85ae28d850945327dce0a554670901b8c71259f4727e9ec759ee103a90789 |