2.8.0 (2015-04-01)
Open HTTP response objects with Image.open
HTTP response objects returned from urllib2.urlopen(url) or
requests.get(url, stream=True).raw are ‘file-like’ but do not support .seek()
operations. As a result PIL was unable to open them as images, requiring a wrap in
cStringIO or BytesIO.
Now new functionality has been added to Image.open() by way of an .seek(0) check and
catch on exception AttributeError or . If this is caught we
attempt to wrap the object using (which will only work on buffer-file-like
objects).