get height widht of image PIL code example Example: width and height of pil image image = PIL.Image.open("sample.png") width, height = image.size