You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
LR-LIB-PEOPLE: Reload from Disk leaves face boxes in the old frame when a file's Orientation changed #4993
Face boxes are kept in the catalog on the photo's upright frame (the file's Exif orientation applied). When another app changes a file's Exif Orientation (Finder, Preview or exiftool rotating a JPEG by its tag), Reload from Disk picks up the new size but leaves every face box where it was in the old frame, so the boxes land beside the faces.
Read Metadata from File puts the boxes that are in the file's XMP back in the right place for a quarter turn. It doesn't help with:
boxes that exist only in the catalog: unnamed detector boxes, and drawn or named faces not yet written anywhere;
A 400 × 250 JPEG, Orientation 1, with one MWG face region (AppliedToDimensions 400 × 250, centre 0.2, 0.3, size 0.2 × 0.2, no mwg-rs:Rotation).
library.import, then photo.inspect: meta.regions[0].rect = x 0.1–0.3, y 0.2–0.4. Correct.
Outside LightCraft: exiftool -Orientation#=6 face.jpg (a quarter turn clockwise).
photo.reload, then photo.inspect: the size is now 250 × 400, but the box is still x 0.1–0.3, y 0.2–0.4. It should be x 0.6–0.8, y 0.1–0.3.
photo.readMetadataFromFile, then photo.inspect: x 0.6–0.8, y 0.1–0.3. Correct, because the box came from the file.
Expected
When Reload finds that the file's orientation changed, the catalog's face boxes turn with the photo, by the difference between the old and the new orientation, the way Rotate Left/Right turns the crop and masks. Every box is covered, including catalog-only ones, without needing Read Metadata from File.
Activity