fix: sync frontend preset multipliers and fix sharpen type error

Add clahe and normalise entries to frontend PRESET_MULTIPLIERS to match
backend. Fix SharpenOptions to use m1 (not flat) per Sharp 0.34 types.
This commit is contained in:
SnapOtter
2026-05-09 11:26:49 +08:00
parent b61be9e438
commit bdcfb6647c
2 changed files with 13 additions and 1 deletions
@@ -280,7 +280,7 @@ export function applyCorrections(
const adj = corrections.sharpness * presets.sharpness * scale;
if (adj > 2) {
const sigma = 0.5 + (adj / 100) * 4;
result = result.sharpen({ sigma, flat: 1.0 });
result = result.sharpen({ sigma, m1: 1.0 });
}
}