mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-25 02:30:15 -06:00
proxies() fitted the decoded camera JPEG into the sensor proxy's box, which keeps the JPEG's own aspect and can round a pixel short: an ILCE-7RM4's 1616x1080 preview, decoded at 384x257, fits a 192x128 profile proxy as 191x128, and collect_pairs rejected the mismatch. So `lightcraft-cli calibrate` skipped every file from this camera and no profile could be written. Resize the JPEG to exactly the sensor proxy's size instead; proxies() has already rejected references whose aspect differs by more than 2%. Where fitting already landed on the proxy's size the result is identical (fit is resize at a rounded size), so working renders don't change: 34 real ILCE-7RM4 ARWs render bit-identically. On 923 files from one trip calibrate goes from 0 to 843 accepted. Refs #515 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>