mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
filter.cameraRaw deserialized its params verbatim, so an out-of-range noiseLuminance reached the denoise stage and became a guided-filter radius of round((1 + 3 * n/100) * pixelScale). A value of 1e9 turned six box-mean passes into unbounded work: the command never finished. noiseColor had the same defect through its blur sigma. raw_params now clamps the four noise fields to the documented 0..100, matching how the sibling lens commands clamp their ranges at the same boundary. The in-range path is untouched. Co-authored-by: Brandon Fenty <[email protected]> Co-authored-by: Brandon Thomas <[email protected]>