mirror of
https://github.com/storytold/lightcraft.git
synced 2026-11-02 14:39:41 -06:00
Auto straighten levelled only by the consensus of long lines, which a sea horizon among waves or a building's converging verticals don't give. It now tries, in crates/pipeline/src/straighten.rs: the roll from the vertical vanishing point (at least 8 inliers across the frame), then the horizon as the straight full-width line with brighter rows on one side (scored by its weaker columns, so waves, clouds and ridges don't make one), then the long lines as before; the long lines also veto a horizon they disagree with by more than 1°. The limit drops from 10° to 5°. Upright Level is unchanged. On 113 photos straightened by hand in Lightroom Classic: 50 instead of 29 come out straighter, 10 (as before) more tilted, mean error 0.82° instead of 1.01°. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>