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

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
2

width and height of pil image

image = PIL.Image.open("sample.png")
width, height = image.size
Posted by: Guest on January-15-2021

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

Python Answers by Framework

Browse Popular Code Answers by Language