Answers for "python program to find the dimension of the image"

1

python get image size

from PIL import Image

img = Image.open('path/to/image')
width, height = img.size
im.close()
Posted by: Guest on December-20-2020
0

get resolution of image python

img = Image.open("test.png")
img = img.size
# img.size is a tuple
Posted by: Guest on December-19-2020

Code answers related to "python program to find the dimension of the image"

Python Answers by Framework

Browse Popular Code Answers by Language