Answers for "how to get the height and width of an image in python"

8

pil get image size

from PIL import Image

im = Image.open('whatever.png')
width, height = im.size
Posted by: Guest on April-01-2020

Code answers related to "how to get the height and width of an image in python"

Python Answers by Framework

Browse Popular Code Answers by Language