python-imaging-library

How do I open an image from the internet in PIL? 29.03.2015

This pull-request adds support for stream-handling native to Pillow (the friendly PIL fork) and should be available from version 2.8.0. This allows the simpler opening remote files with urllib: from PIL import Image import urllib2 Image.open(urllib2.urlopen(url)) …or using requests: from PIL import Image import ...