pillow image width code example
Example 1: width and height of pil image
image = PIL.Image.open("sample.png")
width, height = image.size
Example 2: pil get image size
from PIL import Image
im = Image.open('whatever.png')
width, height = im.size
Example 3: python get image size
from PIL import Image
img = Image.open('path/to/image')
width, height = img.size
im.close()