How do I get the picture size with PIL? November 24, 2022 by Tarik from PIL import Image im = Image.open('whatever.png') width, height = im.size According to the documentation.