colorgram.py icon indicating copy to clipboard operation
colorgram.py copied to clipboard

A Python module for extracting colors from images. Get a palette of any picture!

Results 11 colorgram.py issues
Sort by recently updated
recently updated
newest added

When trying to extract colors in a .png with only three colors ((150, 150, 150),(255,255,255),(63, 33, 0)) the one of the colors gets darkened and i get these colors: ((4,...

upon installing colorgram successfully and calling colorgram.extract using pycharm it pop-up a message: colors = colorgram.extract('image.jpg',30) AttributeError: module 'colorgram' has no attribute 'extract' Do you know what I'm missing?

Issue #6 points out a major issue that the HSL is not returned in the standard format (360, 100, 100). It seems like HSLs logic should just be replaced but...

- add support for Cython - add benchmark test script - modified image pixel access method for performance purpose

I'd like to have an extra `.hex` property in the Color object, that contains a string representing the hexadecimal color code. eg. ```python >>> print(my_color.hex) '#0A1FB5' ```

I'm running colorgram on images of board games that I have. Many of them have a black or white box, which means the dominant color in many of the cases...

When we try to convert a color given by the colorgram.extract from RGB to HSL, the conversion is wrong. I tried multiple times and checked from different sources. i found...

When we run colorgram.extract(img_path, n) for images like [THIS](https://5.imimg.com/data5/SM/CE/MY-3824781/silver-mirror-aluminium-sheet-250x250.jpg) for n=6, we get 2-3 colors in return I understand that these kind of images have lesser color information, but is...

Original library dropped the buggy RGB stuff and reduced samples to just: ```const cubes: number = Math.pow(sides, 3);``` packed to `0b00YYhhll` https://github.com/darosh/colorgram-js/blob/4302c3d1e3116ecc70c2557533674322b5d95b82/src/colorgram.ts#L45

![Screenshot 2024-01-08 190109](https://github.com/obskyr/colorgram.py/assets/114654660/8a09210a-01af-4ca6-914b-cbe59fd86d57) I have import "colorgram" module in my program, but it shows the error that file or directory is not found. As on my observation there is a...