mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
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:
@@ -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 });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user