Skip to content

Preserve nested EXIF metadata when saving compressed TIFFs - #10560

Open
nehachinnasani23 wants to merge 3 commits into
python-pillow:mainfrom
nehachinnasani23:fix/compressed-tiff-exif-10460
Open

nehachinnasani23 wants to merge 3 commits into
python-pillow:mainfrom
nehachinnasani23:fix/compressed-tiff-exif-10460

Conversation

@nehachinnasani23

Copy link
Copy Markdown

Fixes # .

Changes proposed in this pull request:

@radarhere

Copy link
Copy Markdown
Member

Hi. Could you describe what is in this PR? How does it differ from #10470?

Comment thread docs/releasenotes/13.1.0.rst Resolved
@radarhere radarhere added the 🤖-assisted AI-assisted label Nov 19, 2026
@nehachinnasani23

Copy link
Copy Markdown
Author

Hi. Could you describe what is in this PR? How does it differ from #10470?

Thanks for reviewing. This PR substantially overlaps #10470 and addresses the same compressed-TIFF metadata issue.

The main differences are:

  • It includes nested directories populated through Image.Exif.get_ifd() even when their top-level pointer tags have not yet been created.
  • It recursively adjusts nested directory offsets when appending TIFF pages. Preserve EXIF subdirectories in compressed TIFFs #10470 calculates those offsets using the final page position instead.
  • Tests cover EXIF objects, serialized EXIF bytes, metadata read from JPEG, three compression methods, and different EXIF values on successive pages.

Both PRs support nested EXIF/GPS/Interop metadata and multipage output; those are shared capabilities.

The release-note heading correction is now applied. Local validation passed: 147 libtiff tests, with one skipped.

I’m happy to consolidate the additional cases into #10470 if that is your preferred approach. This implementation and comparison were prepared with Codex assistance.

@radarhere

Copy link
Copy Markdown
Member

If you are able to converse with the author of #10470 and combine your PRs, that would be helpful, thanks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants