Files
photocraft/crates
Sven Lafebre 0f205f030b Sharpen tool: Protect Detail sharpens gently instead of doing nothing (#12938)
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.
2026-11-10 19:20:13 +01:00
..
…
…
…
…
…