Last active
August 29, 2015 14:16
-
-
Save lu911/d30789431f15f9ba07aa to your computer and use it in GitHub Desktop.
Wand Image object from image url
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib, cStringIO | |
from wand.image import Image | |
url = 'http://img3.wikia.nocookie.net/__cb20100520131746/logopedia/images/5/5c/Google_logo.png' | |
f = cStringIO.StringIO(urllib.urlopen(url).read()) | |
i = Image(file=f) | |
>>> <wand.image.Image: 74d025d 'PNG' (3548x1243)> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment