PIL obtient la taille de l'image
from PIL import Image
im = Image.open('whatever.png')
width, height = im.size
just-saved-you-a-stackoverflow-visit
from PIL import Image
im = Image.open('whatever.png')
width, height = im.size
image = PIL.Image.open("sample.png")
width, height = image.size