Skip to content

Instantly share code, notes, and snippets.

@chrisdrackett
Created September 15, 2008 17:24
Show Gist options
  • Save chrisdrackett/10895 to your computer and use it in GitHub Desktop.
Save chrisdrackett/10895 to your computer and use it in GitHub Desktop.
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