mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-26 02:59:17 -06:00
crs crop edges are normalized to the stored (unrotated) image, while LightCraft's crop rectangle lives in the oriented frame. Catalog import applied them unchanged, so crops on portrait photos (EXIF 6 or 8) landed along the wrong axes. Read Lightroom's orientation code (Adobe_images.orientation: AB, BC, CD, DA and the mirrored BA, CB, DC, AD) and map the rectangle into the oriented frame with Orientation::map_norm_rect; a mirrored orientation also mirrors the straighten angle. The code comes from the catalog, so this works while the originals are still missing at import time. Refs #483 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>