Created
September 15, 2008 17:24
-
-
Save chrisdrackett/10895 to your computer and use it in GitHub Desktop.
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 | |
import Image | |
from StringIO import StringIO | |
image_file = urllib.urlopen('http://ecx.images-amazon.com/images/I/31HFHT2Q56L.jpg') | |
raw_image = StringIO(image_file.read()) | |
image = Image.open(raw_image) | |
rgb = image.convert('RGB') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment