feat(tools): 2.0 phase 5 wave 5b - ai pool: ocr-pdf, transcription, background composites (5 tools) (#226)

This commit is contained in:
SnapOtter
2026-06-13 10:19:47 +08:00
parent 6e1b9865f1
commit 51666cdd5f
59 changed files with 5423 additions and 611 deletions
+28
View File
@@ -269,6 +269,9 @@ const UpscaleSettings = lazy(() =>
const OcrSettings = lazy(() =>
import("@/components/tools/ocr-settings").then((m) => ({ default: m.OcrSettings })),
);
const OcrPdfSettings = lazy(() =>
import("@/components/tools/ocr-pdf-settings").then((m) => ({ default: m.OcrPdfSettings })),
);
const BlurFacesSettings = lazy(() =>
import("@/components/tools/blur-faces-settings").then((m) => ({
default: m.BlurFacesSettings,
@@ -344,6 +347,26 @@ const ColorBlindnessSettings = lazy(() =>
default: m.ColorBlindnessSettings,
})),
);
const TranscribeAudioSettings = lazy(() =>
import("@/components/tools/transcribe-audio-settings").then((m) => ({
default: m.TranscribeAudioSettings,
})),
);
const AutoSubtitlesSettings = lazy(() =>
import("@/components/tools/auto-subtitles-settings").then((m) => ({
default: m.AutoSubtitlesSettings,
})),
);
const BackgroundReplaceSettings = lazy(() =>
import("@/components/tools/background-replace-settings").then((m) => ({
default: m.BackgroundReplaceSettings,
})),
);
const BlurBackgroundSettings = lazy(() =>
import("@/components/tools/blur-background-settings").then((m) => ({
default: m.BlurBackgroundSettings,
})),
);
const ConvertVideoSettings = lazy(() =>
import("@/components/tools/convert-video-settings").then((m) => ({
default: m.ConvertVideoSettings,
@@ -952,6 +975,7 @@ const ENTRY_CONFIG: ReadonlyArray<[string, RegistryEntryConfig]> = [
["remove-background", { Settings: RemoveBgSettings }],
["upscale", { Settings: UpscaleSettings }],
["ocr", { Settings: OcrSettings }],
["ocr-pdf", { accept: ".pdf", Settings: OcrPdfSettings }],
["blur-faces", { Settings: BlurFacesSettings }],
["enhance-faces", { Settings: EnhanceFacesSettings }],
["erase-object", { Settings: EraseObjectSettingsWrapper as never }],
@@ -965,6 +989,10 @@ const ENTRY_CONFIG: ReadonlyArray<[string, RegistryEntryConfig]> = [
["transparency-fixer", { Settings: TransparencyFixerSettings }],
["content-aware-resize", { Settings: ContentAwareResizeSettings }],
["ai-canvas-expand", { Settings: AiCanvasExpandSettings }],
["transcribe-audio", { accept: AUDIO_INPUTS.join(","), Settings: TranscribeAudioSettings }],
["auto-subtitles", { accept: VIDEO_INPUTS.join(","), Settings: AutoSubtitlesSettings }],
["background-replace", { Settings: BackgroundReplaceSettings }],
["blur-background", { Settings: BlurBackgroundSettings }],
// Video tools
["convert-video", { accept: VIDEO_INPUTS.join(","), Settings: ConvertVideoSettings }],