mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
levels_gamma's shadow toe: for gamma ~1.003..1.03 the join point u1 is a tiny positive f32 whose u1^2.2 underflows to 0, so b = inf and the toe gives inf*0 = NaN at u = 0 (any 8/16-bit Levels channel at black). The toe vanishes as gamma -> 1, so the power curve is its limit: use it when b is not finite. Found by cmyk random_documents_match_the_reference (proptest, unseeded; the shrunk case is kept in proptest-regressions); the bug is on main since #5143, not from this batch. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>