mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-02 14:39:41 -06:00
`source_edge_needed` bounds the crop in the photo as shown (turned by its orientation), but counted the rect's pixels with the unturned width and height. On a photo turned a quarter, a crop whose aspect differs from the photo's then asked for too small a source: a square crop of a 3:2 photo shown 2000 px long needs the full-size source, and got the 2560 px preview. It now counts them with the turned size. The two tests that pinned the old count use the turned size too, and one checks that square crop. Found by CodeRabbit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CvoftLURuf4uBmSatewB6V