Next / Previous / Contents / TCC Help System / NM Tech homepage


Describes an image-processing library for the Python programming language.

This publication is available in Web form and also as a PDF document. Please forward any comments to

Table of Contents

1. Introduction
2. Definitions
2.1. Band
2.2. Modes
2.3. Sizes
2.4. Coordinates
2.5. Angles
2.6. Bboxes (bounding boxes)
2.7. Colors
2.8. Filters
3. Creating objects of class Image
3.1. Attributes of the Image object
3.2. Methods on the Image object
4. The ImageDraw module
5. Image enhancement: the ImageFilter module
6. The ImageFont module
7. The ImageTk module
8. Supported file formats

1. Introduction

The Python Imaging Library (PIL) allows you to create, modify, and convert image files in a wide variety of formats using the Python language.

For additional PIL features not described in this document, refer to the online PIL handbook.

For more information about Python, refer to the author's companion publication, Python programming language quick reference, or to the Python Web site, for general information about the Python language.