get size of image in pil image format code example
Example: pil get image size
from PIL import Image
im = Image.open('whatever.png')
width, height = im.size
from PIL import Image
im = Image.open('whatever.png')
width, height = im.size