mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-14 05:36:48 +03:00
Fix TiffImagePlugin interpolating bytes into str.
This commit is contained in:
parent
470e3b94a8
commit
4e4fe2c172
|
@ -799,7 +799,7 @@ class ImageFileDirectory_v2(MutableMapping):
|
||||||
if tag == STRIPOFFSETS:
|
if tag == STRIPOFFSETS:
|
||||||
stripoffsets = len(entries)
|
stripoffsets = len(entries)
|
||||||
typ = self.tagtype.get(tag)
|
typ = self.tagtype.get(tag)
|
||||||
logger.debug("Tag {}, Type: {}, Value: {}".format(tag, typ, value))
|
logger.debug("Tag {}, Type: {}, Value: {!r}".format(tag, typ, value))
|
||||||
values = value if isinstance(value, tuple) else (value,)
|
values = value if isinstance(value, tuple) else (value,)
|
||||||
data = self._write_dispatch[typ](self, *values)
|
data = self._write_dispatch[typ](self, *values)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user