mirror of
https://github.com/storytold/photocraft.git
synced 2026-10-25 15:34:49 +01:00
Exports copied the source EXIF with only Orientation and resolution patched, so a camera JPEG's embedded thumbnail (IFD1) came along. Finder, Android and upload pickers show that thumbnail instead of decoding the image, so an edited photo kept its original preview. export_exif now clears IFD0's next-IFD pointer, unlinking IFD1. Nothing else moves, so every other offset stays valid; JPEG, PNG, WebP and the PSD EXIF resource all go through it. Co-authored-by: vivekprojects-GIT <179340152+vivekprojects-GIT@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>