Skip to main content

A package for automatically finding the most common used colors in an image.

Project description

Common Colors Finder Website

Why color pick when you can grab the 5 most used colors inside a logo or an image and use them for your design and css!

Upload your image or provide an image url and check instantly.

Usage

from colorFinder import ColorFinder

color_finder = ColorFinder(image_url="https://warehouse-camo.ingress.cmh1.psfhosted.org/f10043f97c4efa219b0dca9bab54a6caf620718b/68747470733a2f2f7365637572652e67726176617461722e636f6d2f6176617461722f62306163633463623730383637613663373463306139653465656330356464653f73697a653d3430", num_colors=5)

colors_list = color_finder.get_common_colors()

print(colors_list)

Output

Returns a list of tuples containing the RGB value and color count matching your top num_colors

[((113, 113, 113), 17), ((127, 127, 127), 14), ((117, 117, 117), 13), ((105, 105, 105), 12), ((166, 166, 166), 12)]

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License

You can now copy this code and use it as your README.md file.

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

colorFinder-1.0.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

colorFinder-1.0.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file colorFinder-1.0.2.tar.gz.

File metadata

  • Download URL: colorFinder-1.0.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for colorFinder-1.0.2.tar.gz
Algorithm Hash digest
SHA256 27e13734d3883b8b8a416e2f5238c4cccd620147a0302febedff9c6b0200b8c3
MD5 ca95a0f094cf144032ac6273d7687ffe
BLAKE2b-256 3aee2b0401f1f6d2ccd6d76b475cc46a5b844ab98f26d477ab8ef721e93226ed

See more details on using hashes here.

Provenance

File details

Details for the file colorFinder-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: colorFinder-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for colorFinder-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4ac0d99b7c6adf0e1b5f14d917cea7021f469aa1a3304c933e7d0e37bbb2e69a
MD5 f95cfe23333874411f94b32cda4607d6
BLAKE2b-256 de57b57edd01274bf5c009335217d060e622eaa908f3837eaafb7abd2a0eb68e

See more details on using hashes here.

Provenance

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