python program to find the dimension of the image code example
Example 1: python get image size
from PIL import Image
img = Image.open('path/to/image')
width, height = img.size
im.close()
Example 2: get resolution of image python
img = Image.open("test.png")
img = img.size
# img.size is a tuple