Skip to content

Instantly share code, notes, and snippets.

@andkon
Last active August 29, 2015 14:02
Show Gist options
  • Save andkon/3eabf8f5638b3433a67a to your computer and use it in GitHub Desktop.
Save andkon/3eabf8f5638b3433a67a to your computer and use it in GitHub Desktop.
Using Image from Pillow
from PIL import Image
img = Image.open("imagefilename.png")
print img.size
# 512, 512
print img.format
# PNG
print img.mode
# RGB
@andkon
Copy link
Author

andkon commented Jun 5, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment