removing internal tiff jpeg decompression support (buggy)

This commit is contained in:
Eric Soroos 2017-12-20 14:37:25 +00:00
parent 60e29e5e8d
commit cbcb51c524

View File

@ -1029,14 +1029,6 @@ class TiffImageFile(ImageFile.ImageFile):
compression = self._compression compression = self._compression
if compression == "raw": if compression == "raw":
args = (rawmode, 0, 1) args = (rawmode, 0, 1)
elif compression == "jpeg":
args = rawmode, ""
if JPEGTABLES in self.tag_v2:
# Hack to handle abbreviated JPEG headers
# Definition of JPEGTABLES is that the count
# is the number of bytes in the tables datastream
# so, it should always be 1 in our tag info
self.tile_prefix = self.tag_v2[JPEGTABLES]
elif compression == "packbits": elif compression == "packbits":
args = rawmode args = rawmode
elif compression == "tiff_lzw": elif compression == "tiff_lzw":