The PIL.GdImageFile Module

GdImageFile (class) [#]

Image plugin for the GD uncompressed format.

For more information about this class, see The GdImageFile Class.

open(fp, mode="r") [#]

Load texture from a GD image file.

filename
GD file name, or an opened file handle.
mode
Optional mode. In this version, if the mode argument is given, it must be "r".
Returns:
An image instance.
Raises IOError:
If the image could not be read.

The GdImageFile Class

GdImageFile (class) [#]

Image plugin for the GD uncompressed format. Note that this format is not supported by the standard Image.open function. To use this plugin, you have to import the GdImageFile module and use the GdImageFile.open function.