mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
With Protect Detail on (the default), local_sharpen clamped each result to the range of the pixel and its 8 neighbours, which always contains the original value, so a step or a lone pixel did not change at all. Protect Detail is now an unsharp mask against a wider Gaussian (sigma 2.5 px) whose differences are soft-limited to 6 levels per pass: v + amount*d*L/(L + |d|). Uniform areas stay as they are, and Protect Detail off is unchanged. With Protect Detail on, Strength applies once per dab instead of being spread over the overlapping dabs, so a click at 50 % does half of what 100 % does, as in the reference application.