feat: register content-aware-crop in shared package

This commit is contained in:
SnapOtter
2026-05-11 21:08:30 +08:00
parent 4a863e1ce8
commit 347b8ad530
4 changed files with 286 additions and 1 deletions
+9
View File
@@ -249,6 +249,14 @@ export const TOOLS: Tool[] = [
icon: "Scaling",
route: "/content-aware-resize",
},
{
id: "content-aware-crop",
name: "Content-Aware Crop",
description: "Extend canvas beyond image bounds with AI-powered fill",
category: "ai",
icon: "Expand",
route: "/content-aware-crop",
},
{
id: "transparency-fixer",
name: "PNG Transparency Fixer",
@@ -1240,4 +1248,5 @@ export const PYTHON_SIDECAR_TOOLS = [
"restore-photo",
"passport-photo",
"transparency-fixer",
"content-aware-crop",
] as const;
+1 -1
View File
@@ -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"],
enablesTools: ["erase-object", "colorize", "content-aware-crop"],
},
"upscale-enhance": {
id: "upscale-enhance",
+4
View File
@@ -119,6 +119,10 @@ export const en = {
name: "Content-Aware Resize",
description: "Intelligently resize images while preserving important content",
},
"content-aware-crop": {
name: "Content-Aware Crop",
description: "Extend canvas with AI-powered fill",
},
colorize: {
name: "AI Colorization",
description: "Convert black & white photos to full color using AI deep learning models",