fix(shared): keep a detected JPEG rotation and read past larger metadata

A later XMP APP1 segment no longer clears an EXIF rotation found before
it, and the header window is 256 KiB so a frame header behind an ICC
profile and XMP block is still reached.

Co-Authored-By: Claude Code <noreply@anthropic.com>
0c0d4ea243Julius Marminge committed on 9/5/2026, 9:01:15 PMparent104ad78
2 files changedLine totals unavailable