Skip to content

Instantly share code, notes, and snippets.

@blaggacao
Last active May 30, 2016 12:26
Show Gist options
  • Save blaggacao/aee86f3d8687efefb8186c9ffc19ac9b to your computer and use it in GitHub Desktop.
Save blaggacao/aee86f3d8687efefb8186c9ffc19ac9b to your computer and use it in GitHub Desktop.
run file for testing
import cStringIO as StringIO
from PIL import Image
with open('/testimage.png', 'rb') as f:
data = f.read()
image_stream = StringIO.StringIO(data)
image = Image.open(image_stream)
image.load()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment