Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.8/site-packages/pillow-10.4.0-py3.8-linux-x86_64.egg/PIL/__init__.py: 100%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

7 statements  

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 "BlpImagePlugin", 

29 "BmpImagePlugin", 

30 "BufrStubImagePlugin", 

31 "CurImagePlugin", 

32 "DcxImagePlugin", 

33 "DdsImagePlugin", 

34 "EpsImagePlugin", 

35 "FitsImagePlugin", 

36 "FliImagePlugin", 

37 "FpxImagePlugin", 

38 "FtexImagePlugin", 

39 "GbrImagePlugin", 

40 "GifImagePlugin", 

41 "GribStubImagePlugin", 

42 "Hdf5StubImagePlugin", 

43 "IcnsImagePlugin", 

44 "IcoImagePlugin", 

45 "ImImagePlugin", 

46 "ImtImagePlugin", 

47 "IptcImagePlugin", 

48 "JpegImagePlugin", 

49 "Jpeg2KImagePlugin", 

50 "McIdasImagePlugin", 

51 "MicImagePlugin", 

52 "MpegImagePlugin", 

53 "MpoImagePlugin", 

54 "MspImagePlugin", 

55 "PalmImagePlugin", 

56 "PcdImagePlugin", 

57 "PcxImagePlugin", 

58 "PdfImagePlugin", 

59 "PixarImagePlugin", 

60 "PngImagePlugin", 

61 "PpmImagePlugin", 

62 "PsdImagePlugin", 

63 "QoiImagePlugin", 

64 "SgiImagePlugin", 

65 "SpiderImagePlugin", 

66 "SunImagePlugin", 

67 "TgaImagePlugin", 

68 "TiffImagePlugin", 

69 "WebPImagePlugin", 

70 "WmfImagePlugin", 

71 "XbmImagePlugin", 

72 "XpmImagePlugin", 

73 "XVThumbImagePlugin", 

74] 

75 

76 

77class UnidentifiedImageError(OSError): 

78 """ 

79 Raised in :py:meth:`PIL.Image.open` if an image cannot be opened and identified. 

80 

81 If a PNG image raises this error, setting :data:`.ImageFile.LOAD_TRUNCATED_IMAGES` 

82 to true may allow the image to be opened after all. The setting will ignore missing 

83 data and checksum failures. 

84 """ 

85 

86 pass