Revert "feat: replace AI matting with chroma-based checkerboard detection"

This reverts commit f1a4c94375.
This commit is contained in:
SnapOtter
2026-05-13 17:20:33 +08:00
parent a03d4f34ff
commit 05720f350a
3 changed files with 77 additions and 71 deletions
+7 -6
View File
@@ -250,18 +250,18 @@ export const TOOLS: Tool[] = [
route: "/content-aware-resize",
},
{
id: "ai-canvas-expand",
name: "AI Canvas Expand",
description: "Expand canvas beyond image bounds with AI-powered fill",
id: "content-aware-crop",
name: "Content-Aware Crop",
description: "Extend canvas beyond image bounds with AI-powered fill",
category: "ai",
icon: "Expand",
route: "/ai-canvas-expand",
route: "/content-aware-crop",
},
{
id: "transparency-fixer",
name: "PNG Transparency Fixer",
description: "Fix fake transparent PNGs in one click",
category: "utilities",
category: "ai",
icon: "ShieldCheck",
route: "/transparency-fixer",
},
@@ -1247,5 +1247,6 @@ export const PYTHON_SIDECAR_TOOLS = [
"red-eye-removal",
"restore-photo",
"passport-photo",
"ai-canvas-expand",
"transparency-fixer",
"content-aware-crop",
] as const;
+2 -2
View File
@@ -26,7 +26,7 @@ export const FEATURE_BUNDLES: Record<string, FeatureBundleInfo> = {
name: "Background Removal",
description: "Remove image backgrounds with AI",
estimatedSize: "4-5 GB",
enablesTools: ["remove-background", "passport-photo"],
enablesTools: ["remove-background", "passport-photo", "transparency-fixer"],
},
"face-detection": {
id: "face-detection",
@@ -40,7 +40,7 @@ export const FEATURE_BUNDLES: Record<string, FeatureBundleInfo> = {
name: "Object Eraser & Colorize",
description: "Erase objects from photos and colorize B&W images",
estimatedSize: "1-2 GB",
enablesTools: ["erase-object", "colorize", "ai-canvas-expand"],
enablesTools: ["erase-object", "colorize", "content-aware-crop"],
},
"upscale-enhance": {
id: "upscale-enhance",