Files
photocraft/crates/raw/src
UnemarsandClaude Fable 5.1 65778c1f7e Raw tone curve: no NaN between a knot at black and the next one (#7416)
`develop::tone` interpolates the camera curve logarithmically between knots, and a curve whose first knot sits at black (0, 0) made the first segment divide by log₂ 0: every value in it came out NaN, and `retone` (the open-time Shadows/Highlights preview) propagated it into the pixels. From a knot at black the segment is now linear, where log₂ has no value; the other segments are unchanged.

Test: `retone_lifts_shadows_with_a_curve_from_black` (finite output, shadows lifted, highlights kept) fails without the fix.

Split out of #3816 at the reviewer's request.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-18 10:50:41 -04:00
..