Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

photosynthetic-0.0.15.tar.gz (178.8 kB view details)

Uploaded Source

Built Distribution

photosynthetic-0.0.15-py3-none-any.whl (184.7 kB view details)

Uploaded Python 3

File details

Details for the file photosynthetic-0.0.15.tar.gz.

File metadata

  • Download URL: photosynthetic-0.0.15.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

Hashes for photosynthetic-0.0.15.tar.gz
Algorithm Hash digest
SHA256 add238287af3e0b3ada148019f47b599363d75dd8db1a93512a50b49b5d078f3
MD5 7b403b218bbda9ec8e34345a85365cf0
BLAKE2b-256 2faa9a1bb31999813bb8675c53057fc9cf6e2ac6b5410f32904c4d0382d93c05

See more details on using hashes here.

File details

Details for the file photosynthetic-0.0.15-py3-none-any.whl.

File metadata

  • Download URL: photosynthetic-0.0.15-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

Hashes for photosynthetic-0.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 aea9494f8461337f87cbd94c577ea33488eb0a737ecd5167fada9200d0872e63
MD5 3d17e6ac0cff3d5a906a97917c039451
BLAKE2b-256 d0f610b72a06e0b1bebaf1e714da3acf4a6d2edae7ad42ba2aef4774f4a13c4d

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page