Last Updated: February 25, 2016
·
490
· bolomichelin

Get image width & height

import sys
sys.path.append("/usr/local/lib/python2.7/site-packages")
from PIL import Image

image_file = "french_flag.bmp"
img = Image.open(image_file)

width, height = img.size # get the image's width and height in pixels

Voila !