__init__.py 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. """Pillow (Fork of the Python Imaging Library)
  2. Pillow is the friendly PIL fork by Alex Clark 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. "FitsStubImagePlugin",
  26. "FliImagePlugin",
  27. "FpxImagePlugin",
  28. "FtexImagePlugin",
  29. "GbrImagePlugin",
  30. "GifImagePlugin",
  31. "GribStubImagePlugin",
  32. "Hdf5StubImagePlugin",
  33. "IcnsImagePlugin",
  34. "IcoImagePlugin",
  35. "ImImagePlugin",
  36. "ImtImagePlugin",
  37. "IptcImagePlugin",
  38. "JpegImagePlugin",
  39. "Jpeg2KImagePlugin",
  40. "McIdasImagePlugin",
  41. "MicImagePlugin",
  42. "MpegImagePlugin",
  43. "MpoImagePlugin",
  44. "MspImagePlugin",
  45. "PalmImagePlugin",
  46. "PcdImagePlugin",
  47. "PcxImagePlugin",
  48. "PdfImagePlugin",
  49. "PixarImagePlugin",
  50. "PngImagePlugin",
  51. "PpmImagePlugin",
  52. "PsdImagePlugin",
  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. """
  68. pass