__init__.py 1.9 KB

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