mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-13 16:54:45 +03:00
Merge 8502503652
into 26970c5e21
This commit is contained in:
commit
0af8da10b7
|
@ -1071,6 +1071,13 @@ class TiffImageFile(ImageFile.ImageFile):
|
|||
if 0xBC01 in self.tag_v2:
|
||||
raise IOError("Windows Media Photo files not yet supported")
|
||||
|
||||
try:
|
||||
#restore pointer to load method
|
||||
self.load = self._load
|
||||
except AttributeError:
|
||||
#save pointer to parent load method
|
||||
self._load = super(TiffImageFile,self).load
|
||||
|
||||
# extract relevant tags
|
||||
self._compression = COMPRESSION_INFO[self.tag_v2.get(COMPRESSION, 1)]
|
||||
self._planar_configuration = self.tag_v2.get(PLANAR_CONFIGURATION, 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user