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!
Conteúdo para você se capacitar em programação
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!