Using PIL to determine width and height of images
On a specific image (luckily only this one - but it is troubling) the width/height returning from image.size is the opposite.
The image:
http://storage.googleapis.com/cookila-533ebf752b9d1f7c1e8b4db3/IMG_0004.JPG
The code:
from PIL import Image
import urllib, cStringIOfile = cStringIO.StringIO(urllib.urlopen('http://storage.googleapis.com/cookila-533ebf752b9d1f7c1e8b4db3/IMG_0004.JPG').read())
im=Image.open(file)
print im.size
The result is - (2592, 1936)
should be the other way around