CoolFace
Apppublic

Aluode/PerceptionLabPortable

sourceHugging Faceupdated 9mo agoView on Hugging Face
0likes
__init__.py88 linesDownload Raw Back to PIL
1"""Pillow (Fork of the Python Imaging Library)
2
3Pillow is the friendly PIL fork by Jeffrey A. Clark and contributors.
4    https://github.com/python-pillow/Pillow/
5
6Pillow is forked from PIL 1.1.7.
7
8PIL is the Python Imaging Library by Fredrik Lundh and contributors.
9Copyright (c) 1999 by Secret Labs AB.
10
11Use PIL.__version__ for this Pillow version.
12
13;-)
14"""
15
16from __future__ import annotations
17
18from . import _version
19
20# VERSION was removed in Pillow 6.0.0.
21# PILLOW_VERSION was removed in Pillow 9.0.0.
22# Use __version__ instead.
23__version__ = _version.__version__
24del _version
25
26
27_plugins = [
28    "AvifImagePlugin",
29    "BlpImagePlugin",
30    "BmpImagePlugin",
31    "BufrStubImagePlugin",
32    "CurImagePlugin",
33    "DcxImagePlugin",
34    "DdsImagePlugin",
35    "EpsImagePlugin",
36    "FitsImagePlugin",
37    "FliImagePlugin",
38    "FpxImagePlugin",
39    "FtexImagePlugin",
40    "GbrImagePlugin",
41    "GifImagePlugin",
42    "GribStubImagePlugin",
43    "Hdf5StubImagePlugin",
44    "IcnsImagePlugin",
45    "IcoImagePlugin",
46    "ImImagePlugin",
47    "ImtImagePlugin",
48    "IptcImagePlugin",
49    "JpegImagePlugin",
50    "Jpeg2KImagePlugin",
51    "McIdasImagePlugin",
52    "MicImagePlugin",
53    "MpegImagePlugin",
54    "MpoImagePlugin",
55    "MspImagePlugin",
56    "PalmImagePlugin",
57    "PcdImagePlugin",
58    "PcxImagePlugin",
59    "PdfImagePlugin",
60    "PixarImagePlugin",
61    "PngImagePlugin",
62    "PpmImagePlugin",
63    "PsdImagePlugin",
64    "QoiImagePlugin",
65    "SgiImagePlugin",
66    "SpiderImagePlugin",
67    "SunImagePlugin",
68    "TgaImagePlugin",
69    "TiffImagePlugin",
70    "WebPImagePlugin",
71    "WmfImagePlugin",
72    "XbmImagePlugin",
73    "XpmImagePlugin",
74    "XVThumbImagePlugin",
75]
76
77
78class UnidentifiedImageError(OSError):
79    """
80    Raised in :py:meth:`PIL.Image.open` if an image cannot be opened and identified.
81
82    If a PNG image raises this error, setting :data:`.ImageFile.LOAD_TRUNCATED_IMAGES`
83    to true may allow the image to be opened after all. The setting will ignore missing
84    data and checksum failures.
85    """
86
87    pass
88