refactor(ai): remove mode, add colorizeStrength to restore options

This commit is contained in:
SnapOtter
2026-05-13 16:55:38 +08:00
parent dd6ea16dd4
commit 693b441aa0
2 changed files with 9 additions and 16 deletions
+1 -1
View File
@@ -4,13 +4,13 @@ import sharp from "sharp";
import { type ProgressCallback, parseStdoutJson, runPythonWithProgress } from "./bridge.js";
export interface RestorePhotoOptions {
mode?: string;
scratchRemoval?: boolean;
faceEnhancement?: boolean;
fidelity?: number;
denoise?: boolean;
denoiseStrength?: number;
colorize?: boolean;
colorizeStrength?: number;
}
export interface RestorePhotoResult {