Pillow library Image provides support for creating and manipulating images.

Standard package

Modules using `Image typically include the following import

from PIL import Image


Image members

Suppose below im is an Image object, spot is a two-tuple (x, y) representing an image coordinate of interest, and c is a pixel (color).


For example, the first two statements in following code segment initialize respectively w and h to the width and height of image im. The third statement initializes respectively sw and sh also to the width and height of image im.

w = im.width

h = im.height

sw, sh = im.size