Here is the problem I've run into:
I have an image that has 3024 x 4032 in Dimensions, and usually just by looking at it, you know it's a vertical image, but it's not for whatever reasons.

from PIL import Image
img = Image.open("xxx.jpg")
print(img.size)
It turns out to be (4032 x 3024) in dimensions, why is that?
In most of the cases, it prints out as expected, where dimensions has width as its first argument(img.size[o]), and height as its second argument(img.size[1]).
It looks like width and height aren't always in the right position? Or did I miss something?