how to get image dimensions pillow code example
Example: python get image size
from PIL import Image
img = Image.open('path/to/image')
width, height = img.size
im.close()
from PIL import Image
img = Image.open('path/to/image')
width, height = img.size
im.close()