Last active
May 30, 2016 12:26
-
-
Save blaggacao/aee86f3d8687efefb8186c9ffc19ac9b to your computer and use it in GitHub Desktop.
run file for testing
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 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