(url)
return Image.open(file)
Download an image from an URL.
Download an image from an URL.
Download an image from an URL .
def load_image(url):
    """Download an image from an URL."""
    print("Downloading image... ", end="")
    file = cStringIO.StringIO(urllib.urlopen(url).read())
    print("Done!")
    return Image.open(file)
def load_image ( url ) : print ( "Downloading image... " , end = "" ) file = cStringIO . StringIO ( urllib . urlopen ( url ) . read ( ) ) print ( "Done!" ) return Image . open ( file )