mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Changed register calls to use format property
This commit is contained in:
parent
c06a0e816a
commit
5266a4506a
|
@ -221,6 +221,6 @@ class FpxImageFile(ImageFile.ImageFile):
|
|||
#
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
Image.register_open("FPX", FpxImageFile, _accept)
|
||||
Image.register_open(FpxImageFile.format, FpxImageFile, _accept)
|
||||
|
||||
Image.register_extension("FPX", ".fpx")
|
||||
Image.register_extension(FpxImageFile.format, ".fpx")
|
||||
|
|
|
@ -89,7 +89,7 @@ class ImtImageFile(ImageFile.ImageFile):
|
|||
#
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
Image.register_open("IMT", ImtImageFile)
|
||||
Image.register_open(ImtImageFile.format, ImtImageFile)
|
||||
|
||||
#
|
||||
# no extension registered (".im" is simply too common)
|
||||
|
|
|
@ -69,6 +69,6 @@ class McIdasImageFile(ImageFile.ImageFile):
|
|||
# --------------------------------------------------------------------
|
||||
# registry
|
||||
|
||||
Image.register_open("MCIDAS", McIdasImageFile, _accept)
|
||||
Image.register_open(McIdasImageFile.format, McIdasImageFile, _accept)
|
||||
|
||||
# no default extension
|
||||
|
|
|
@ -62,7 +62,7 @@ class PixarImageFile(ImageFile.ImageFile):
|
|||
#
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
Image.register_open("PIXAR", PixarImageFile)
|
||||
Image.register_open(PixarImageFile.format, PixarImageFile)
|
||||
|
||||
#
|
||||
# FIXME: what's the standard extension?
|
||||
|
|
|
@ -72,4 +72,4 @@ class XVThumbImageFile(ImageFile.ImageFile):
|
|||
|
||||
# --------------------------------------------------------------------
|
||||
|
||||
Image.register_open("XVThumb", XVThumbImageFile)
|
||||
Image.register_open(XVThumbImageFile.format, XVThumbImageFile)
|
||||
|
|
Loading…
Reference in New Issue
Block a user