mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-28 17:29:31 +01:00
A photo whose Exif states a size but no orientation, and whose XMP says tiff:Orientation=6, is displayed as stored (by the Exif alone). extract turned its stored-frame boxes by the XMP's orientation anyway, so import stored them turned while Read Metadata from File did not (review of #2857). extract_embedded now turns by the orientation the Exif's own first IFD states (exif::ifd0_orientation, which also leaves out the XMP in a TIFF's tag 700), the same rule as for the size. Metadata::orientation is still filled from the XMP as before. Tests (both fail on the previous head, with the reviewer's numbers): the photo as a JPEG and as a TIFF in lightcraft-meta, and through library.import and photo.readMetadataFromFile in the engine. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CvoftP5JSqAEJ9t7FSczTs