Closed nleroy917 closed 4 years ago
Hmm, I don't dislike this quality-of-life change – not having to import PIL
is nice – but…
test_api.py
shouldn't depend on requests
. Instead, try opening one of the local images, reading that as binary data, and passing that!test_api.py
for passing a file path to extract
, since that's something passing the argument directly to Image
makes possible.request
-including commits!Sure - this will require another pull request
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.