Skip to content

Instantly share code, notes, and snippets.

@andkon
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save andkon/3eabf8f5638b3433a67a to your computer and use it in GitHub Desktop.

Select an option

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

andkon commented Jun 5, 2014

Copy link
Copy Markdown
Author

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