From CodeRabbit's review of #2857:
- Import: when the file's orientation swaps the axes and the XMP's boxes were
drawn on a stated size, the probe turns the boxes as written by the image
header's stored size, not by a size the metadata states (missing, or
written for the upright photo).
- Read Metadata from File and Synchronize Folder: the file's orientation is
read from its first MiB and, when that part states none, from the rest of
the file. WebP keeps its EXIF chunk after the image data, many TIFF
writers put the first IFD after the strips, and a JPEG's Exif can follow
other long segments.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016TuX1qw9ieyuJ1ZFrrUxzc