mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-22 15:24:37 +03:00
Merge pull request #8568 from radarhere/fixifd
This commit is contained in:
commit
bff83cff59
|
@ -2232,6 +2232,16 @@ class AppendingTiffWriter(io.BytesIO):
|
||||||
if tag in self.Tags:
|
if tag in self.Tags:
|
||||||
cur_pos = self.f.tell()
|
cur_pos = self.f.tell()
|
||||||
|
|
||||||
|
logger.debug(
|
||||||
|
"fixIFD: %s (%d) - type: %s (%d) - type size: %d - count: %d",
|
||||||
|
TiffTags.lookup(tag).name,
|
||||||
|
tag,
|
||||||
|
TYPES.get(field_type, "unknown"),
|
||||||
|
field_type,
|
||||||
|
field_size,
|
||||||
|
count,
|
||||||
|
)
|
||||||
|
|
||||||
if is_local:
|
if is_local:
|
||||||
self._fixOffsets(count, field_size)
|
self._fixOffsets(count, field_size)
|
||||||
self.f.seek(cur_pos + fmt_size)
|
self.f.seek(cur_pos + fmt_size)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user