SyntaxFix
Write A Post
Hire A Developer
Questions
Kurts answer needed to be slightly modified to work for me.
First, on ubuntu: sudo apt-get install python-imaging
sudo apt-get install python-imaging
Then:
from PIL import Image im=Image.open(filepath) im.size # (width,height) tuple
Check out the handbook for more info.