Merge pull request #8568 from radarhere/fixifd

This commit is contained in:
Hugo van Kemenade 2025-01-16 16:33:42 +02:00 committed by GitHub
commit bff83cff59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2232,6 +2232,16 @@ class AppendingTiffWriter(io.BytesIO):
if tag in self.Tags:
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:
self._fixOffsets(count, field_size)
self.f.seek(cur_pos + fmt_size)