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.

 

[comment on/vote for this article]

A Django site. this page was rendered by a django application in 0.02s 2010-09-02 14:34:09.945897. hosted by webfaction.