Last active
August 29, 2015 14:02
-
-
Save andkon/3eabf8f5638b3433a67a to your computer and use it in GitHub Desktop.
Using Image from Pillow
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
from PIL import Image | |
img = Image.open("imagefilename.png") | |
print img.size | |
# 512, 512 | |
print img.format | |
# PNG | |
print img.mode | |
# RGB |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://pillow.readthedocs.org/en/latest/handbook/tutorial.html