PIL Package (autodoc of remaining modules)¶
Reference for modules whose documentation has not yet been ported or written can be found here.
PIL
Module¶
- exception PIL.UnidentifiedImageError[source]¶
Bases:
OSError
Raised in
PIL.Image.open()
if an image cannot be opened and identified.If a PNG image raises this error, setting
ImageFile.LOAD_TRUNCATED_IMAGES
to true may allow the image to be opened after all. The setting will ignore missing data and checksum failures.
BdfFontFile
Module¶
ContainerIO
Module¶
- class PIL.ContainerIO.ContainerIO(file: IO, offset: int, length: int)[source]¶
Bases:
Generic
A file object that provides read access to a part of an existing file (for example a TAR file).
- read(n: int = 0) AnyStr [source]¶
Read data.
- Parameters:
n – Number of bytes to read. If omitted or zero, read until end of region.
- Returns:
An 8-bit string.
FontFile
Module¶
GdImageFile
Module¶
GimpGradientFile
Module¶
Stuff to translate curve segments to palette values (derived from the corresponding code in GIMP, written by Federico Mena Quintero. See the GIMP distribution for more information.)
- PIL.GimpGradientFile.EPSILON = 1e-10¶
- class PIL.GimpGradientFile.GimpGradientFile(fp)[source]¶
Bases:
GradientFile
File handler for GIMP’s gradient format.
- PIL.GimpGradientFile.SEGMENTS = [<function linear>, <function curved>, <function sine>, <function sphere_increasing>, <function sphere_decreasing>]¶
GimpPaletteFile
Module¶
ImageDraw2
Module¶
ImageMode
Module¶
- class PIL.ImageMode.ModeDescriptor(mode: str, bands: tuple[str, ...], basemode: str, basetype: str, typestr: str)[source]¶
Bases:
object
Wrapper for mode strings.
- PIL.ImageMode.getmode(mode: str) ModeDescriptor [source]¶
Gets a mode descriptor for the given mode.
ImageTransform
Module¶
PaletteFile
Module¶
PcfFontFile
Module¶
PngImagePlugin.iTXt
Class¶
PngImagePlugin.PngInfo
Class¶
TarIO
Module¶
- class PIL.TarIO.TarIO(tarfile: str, file: str)[source]¶
Bases:
ContainerIO
[bytes
]A file object that provides read access to a given member of a TAR file.