Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OverflowError: Python int too large to convert to C long #16

Open
windu80 opened this issue Oct 17, 2022 · 0 comments
Open

OverflowError: Python int too large to convert to C long #16

windu80 opened this issue Oct 17, 2022 · 0 comments

Comments

@windu80
Copy link

windu80 commented Oct 17, 2022

Hi,

I wanted to get a palette from an assortiment of images instead of one image, so I concatenated vertically about 36 images.
The image is available here, so you can test.
When I run the list_colors = colorgram.extract(full_img, number_of_colors=6) on this image, I get the following error:

File "C:\Users\Owner\Dropbox\Online classes\Udemy - Python 100 Days of Code\Python Projects\venv\lib\site-packages\colorgram\colorgram.py", line 42, in extract
samples = sample(image)
File "C:\Users\Owner\Dropbox\Online classes\Udemy - Python 100 Days of Code\Python Projects\venv\lib\site-packages\colorgram\colorgram.py", line 91, in sample
samples[packed] += r
OverflowError: Python int too large to convert to C long

Not sure how to solve this issue...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant