back next

C. Image File Formats

The Python Imaging Library supports a wide variety of raster file formats. Nearly 30 different file formats can be identified and read by the library. Write support is less extensive, but most common interchange and presentation formats are supported.

The open function identifies files from their contents, not their names, but the save method looks at the name to determine which format to use, unless the format is given explicitly.

 

A Django site. rendered by a django application. hosted by webfaction.