Skip to content

Commit bff83cf

Browse files
authored
Merge pull request #8568 from radarhere/fixifd
2 parents e59549f + c67ed46 commit bff83cf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/PIL/TiffImagePlugin.py

+10
Original file line numberDiff line numberDiff line change
@@ -2232,6 +2232,16 @@ def fixIFD(self) -> None:
22322232
if tag in self.Tags:
22332233
cur_pos = self.f.tell()
22342234

2235+
logger.debug(
2236+
"fixIFD: %s (%d) - type: %s (%d) - type size: %d - count: %d",
2237+
TiffTags.lookup(tag).name,
2238+
tag,
2239+
TYPES.get(field_type, "unknown"),
2240+
field_type,
2241+
field_size,
2242+
count,
2243+
)
2244+
22352245
if is_local:
22362246
self._fixOffsets(count, field_size)
22372247
self.f.seek(cur_pos + fmt_size)

0 commit comments

Comments
 (0)