obskyr / colorgram.py

A Python module for extracting colors from images. Get a palette of any picture!
MIT License
451 stars 50 forks source link

Add support for images stored in memory (Images downloaded from a url) #8

Closed nleroy917 closed 4 years ago

nleroy917 commented 4 years ago

I understand the concern from earlier where Colorgram was responsible for downloading the image, this time I made it so that one can downloaded the image with requests and pass the data in memory to colorgram which detects data type and opens the image accordingly.

obskyr commented 4 years ago

Hmm, I don't dislike this quality-of-life change – not having to import PIL is nice – but…

nleroy917 commented 4 years ago

Sure - this will require another pull request