IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
C. Image File Formats
Python Imaging Library Handbook

Prev   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.