feat(tools): complete 12-tool suite across all categories and fluid category listing navigation
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.eyebag.remove",
|
||||
"slug": "eye-bag-remover",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "Eye Bag & Dark Circle Remover",
|
||||
"hi": "आई बैग और डार्क सर्कल हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Smooth under-eye dark circles, shadows, and puffiness for an awake, refreshed look without blur.",
|
||||
"hi": "थकी आंखों के नीचे के काले घेरे और सूजन को हटाएं और ताजा रूप पाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-eye-bag-remover",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload face photo", "hi": "चेहरे की फोटो अपलोड करें" },
|
||||
"desc": { "en": "Pick a clear portrait showing under-eye areas.", "hi": "आंखों के नीचे का क्षेत्र दिखाने वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Neural puffiness fix", "hi": "सूजन सुधार" },
|
||||
"desc": { "en": "Balances melanin shadows while preserving natural skin pores.", "hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए छाया संतुलित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download photo", "hi": "फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Save instant result or export 4K in Portrait Studio AI.", "hi": "तुरंत परिणाम सहेजें या 4K में निर्यात करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Natural dark circle softening with intact micro-skin texture"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Will this make my eyes look airbrushed or fake?",
|
||||
"a": "No, our model selectively brightens melanin hyperpigmentation and softens puffiness shadows without wiping away natural facial contours or skin micro-textures."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.eyeredness.remove", "face.teeth.whitener"],
|
||||
"seo": {
|
||||
"title": "Remove Eye Bags & Dark Circles Free Online | CRE Innovations",
|
||||
"description": "Gentle under-eye dark circle and puffiness reduction free online. Refresh tired eyes with natural skin texture preservation."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.eyeredness.remove",
|
||||
"slug": "eye-redness-remover",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Eye Redness & Flash Corrector",
|
||||
"hi": "आंखों का लालपन और फ्लैश हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Instantly fix red-eye from camera flash and restore natural dark iris clarity and bright sclera.",
|
||||
"hi": "कैमरा फ्लैश से आंखों के लालपन को हटाएं और प्राकृतिक आंखों की चमक वापस लाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "ml-eye-redness-remover",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Select any portrait or selfie with red-eye flash reflection.", "hi": "लाल आंखों वाली कोई भी तस्वीर अपलोड करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "AI eye correction", "hi": "एआई आंख सुधार" },
|
||||
"desc": { "en": "Neural iris segmentation restores authentic eye pigmentation.", "hi": "एआई प्राकृतिक आंखों का रंग पुनर्स्थापित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download HD result", "hi": "एचडी परिणाम डाउनलोड करें" },
|
||||
"desc": { "en": "Save clean photo or open in Portrait Studio AI.", "hi": "तस्वीर सहेजें या पोर्ट्रेट स्टूडियो में खोलें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Red-eye flash reflection removal with vibrant iris definition"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does AI detect red-eye reflections?",
|
||||
"a": "Our pupil-detection network locates the corneal reflection zone and neutralizes flash glare while preserving natural iris rings and pupil depth."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.eyebag.remove", "face.teeth.whitener"],
|
||||
"seo": {
|
||||
"title": "Free Online AI Eye Redness & Flash Corrector | CRE Innovations",
|
||||
"description": "Fix red-eye reflection and flash glare in portrait photos free online. Neural pupil correction with natural eye pigmentation."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "cutout.lama.erase",
|
||||
"slug": "object-eraser",
|
||||
"status": "published",
|
||||
"category": "background-cutout",
|
||||
"name": {
|
||||
"en": "LaMa AI Object Eraser",
|
||||
"hi": "लामा एआई ऑब्जेक्ट इरेज़र"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Erase unwanted photobombers, objects, text, and tourists with context-aware smart inpainting.",
|
||||
"hi": "स्मार्ट इनपेंटिंग के साथ अवांछित वस्तुओं, लोगों और टेक्स्ट को मिटाएं।"
|
||||
},
|
||||
"homeApp": "bg-cleaner-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-lama-cleaner",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload image", "hi": "छवि अपलोड करें" },
|
||||
"desc": { "en": "Select any photo with unwanted objects or photobombers.", "hi": "अवांछित वस्तुओं वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Brush to erase", "hi": "मिटाने के लिए ब्रश करें" },
|
||||
"desc": { "en": "AI inpainting predicts and reconstructs hidden background textures.", "hi": "एआई पृष्ठभूमि को निर्बाध रूप से पुनर्निर्मित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download clean photo", "hi": "साफ फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Download clean photo or open in Magic Cutout Studio.", "hi": "साफ तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Context-aware object erasing with natural texture reconstruction"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does LaMa inpainting work?",
|
||||
"a": "LaMa uses Large Mask Inpainting Fourier convolutions to understand scene context and seamlessly synthesize missing patterns, horizons, and textures."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["cutout.p3m.bg", "restore.enhancer"],
|
||||
"seo": {
|
||||
"title": "Free AI Object Eraser Online (LaMa Inpainting) | CRE Innovations",
|
||||
"description": "Erase photobombers, tourists, power lines, and unwanted objects from photos free online with LaMa neural inpainting."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.glow.portrait",
|
||||
"slug": "portrait-glow",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Studio Glow & Skin Illuminator",
|
||||
"hi": "एआई स्टूडियो ग्लो और त्वचा प्रदीपक"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Generates natural golden hour studio radiance, warm highlights, and epidermal luminescence.",
|
||||
"hi": "प्राकृतिक गोल्डन ऑवर स्टूडियो चमक और उज्ज्वल त्वचा का उत्पादन करें।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-glow-portrait-ai",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Select any selfie or studio photo.", "hi": "कोई भी सेल्फी या पोर्ट्रेट चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Neural studio lighting", "hi": "न्यूरल स्टूडियो लाइटिंग" },
|
||||
"desc": { "en": "Calculates depth and applies soft golden hour luminescence.", "hi": "सॉफ्ट गोल्डन ऑवर रोशनी लागू करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download radiant portrait", "hi": "चमकदार पोर्ट्रेट डाउनलोड करें" },
|
||||
"desc": { "en": "Save your glowing portrait or export in 4K.", "hi": "अपनी चमकती तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Warm studio skin glow with three-dimensional facial contouring"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Does this alter my facial structure?",
|
||||
"a": "No, AI Studio Glow computes 3D surface normals to simulate physical studio rim and key lights without distorting facial anatomy."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.teeth.whitener", "face.eyebag.remove"],
|
||||
"seo": {
|
||||
"title": "AI Studio Glow & Skin Illuminator Free Online | CRE Innovations",
|
||||
"description": "Simulate warm golden hour studio lighting and radiant skin glow free online. Neural 3D portrait illumination."
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 57 KiB |
|
After Width: | Height: | Size: 38 KiB |
|
After Width: | Height: | Size: 103 KiB |
|
After Width: | Height: | Size: 87 KiB |
|
After Width: | Height: | Size: 75 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 63 KiB |
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.eyebag.remove",
|
||||
"slug": "eye-bag-remover",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "Eye Bag & Dark Circle Remover",
|
||||
"hi": "आई बैग और डार्क सर्कल हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Smooth under-eye dark circles, shadows, and puffiness for an awake, refreshed look without blur.",
|
||||
"hi": "थकी आंखों के नीचे के काले घेरे और सूजन को हटाएं और ताजा रूप पाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-eye-bag-remover",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload face photo", "hi": "चेहरे की फोटो अपलोड करें" },
|
||||
"desc": { "en": "Pick a clear portrait showing under-eye areas.", "hi": "आंखों के नीचे का क्षेत्र दिखाने वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Neural puffiness fix", "hi": "सूजन सुधार" },
|
||||
"desc": { "en": "Balances melanin shadows while preserving natural skin pores.", "hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए छाया संतुलित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download photo", "hi": "फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Save instant result or export 4K in Portrait Studio AI.", "hi": "तुरंत परिणाम सहेजें या 4K में निर्यात करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Natural dark circle softening with intact micro-skin texture"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Will this make my eyes look airbrushed or fake?",
|
||||
"a": "No, our model selectively brightens melanin hyperpigmentation and softens puffiness shadows without wiping away natural facial contours or skin micro-textures."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.eyeredness.remove", "face.teeth.whitener"],
|
||||
"seo": {
|
||||
"title": "Remove Eye Bags & Dark Circles Free Online | CRE Innovations",
|
||||
"description": "Gentle under-eye dark circle and puffiness reduction free online. Refresh tired eyes with natural skin texture preservation."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.eyeredness.remove",
|
||||
"slug": "eye-redness-remover",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Eye Redness & Flash Corrector",
|
||||
"hi": "आंखों का लालपन और फ्लैश हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Instantly fix red-eye from camera flash and restore natural dark iris clarity and bright sclera.",
|
||||
"hi": "कैमरा फ्लैश से आंखों के लालपन को हटाएं और प्राकृतिक आंखों की चमक वापस लाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "ml-eye-redness-remover",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Select any portrait or selfie with red-eye flash reflection.", "hi": "लाल आंखों वाली कोई भी तस्वीर अपलोड करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "AI eye correction", "hi": "एआई आंख सुधार" },
|
||||
"desc": { "en": "Neural iris segmentation restores authentic eye pigmentation.", "hi": "एआई प्राकृतिक आंखों का रंग पुनर्स्थापित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download HD result", "hi": "एचडी परिणाम डाउनलोड करें" },
|
||||
"desc": { "en": "Save clean photo or open in Portrait Studio AI.", "hi": "तस्वीर सहेजें या पोर्ट्रेट स्टूडियो में खोलें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Red-eye flash reflection removal with vibrant iris definition"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does AI detect red-eye reflections?",
|
||||
"a": "Our pupil-detection network locates the corneal reflection zone and neutralizes flash glare while preserving natural iris rings and pupil depth."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.eyebag.remove", "face.teeth.whitener"],
|
||||
"seo": {
|
||||
"title": "Free Online AI Eye Redness & Flash Corrector | CRE Innovations",
|
||||
"description": "Fix red-eye reflection and flash glare in portrait photos free online. Neural pupil correction with natural eye pigmentation."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "cutout.lama.erase",
|
||||
"slug": "object-eraser",
|
||||
"status": "published",
|
||||
"category": "background-cutout",
|
||||
"name": {
|
||||
"en": "LaMa AI Object Eraser",
|
||||
"hi": "लामा एआई ऑब्जेक्ट इरेज़र"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Erase unwanted photobombers, objects, text, and tourists with context-aware smart inpainting.",
|
||||
"hi": "स्मार्ट इनपेंटिंग के साथ अवांछित वस्तुओं, लोगों और टेक्स्ट को मिटाएं।"
|
||||
},
|
||||
"homeApp": "bg-cleaner-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-lama-cleaner",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload image", "hi": "छवि अपलोड करें" },
|
||||
"desc": { "en": "Select any photo with unwanted objects or photobombers.", "hi": "अवांछित वस्तुओं वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Brush to erase", "hi": "मिटाने के लिए ब्रश करें" },
|
||||
"desc": { "en": "AI inpainting predicts and reconstructs hidden background textures.", "hi": "एआई पृष्ठभूमि को निर्बाध रूप से पुनर्निर्मित करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download clean photo", "hi": "साफ फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Download clean photo or open in Magic Cutout Studio.", "hi": "साफ तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Context-aware object erasing with natural texture reconstruction"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does LaMa inpainting work?",
|
||||
"a": "LaMa uses Large Mask Inpainting Fourier convolutions to understand scene context and seamlessly synthesize missing patterns, horizons, and textures."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["cutout.p3m.bg", "restore.enhancer"],
|
||||
"seo": {
|
||||
"title": "Free AI Object Eraser Online (LaMa Inpainting) | CRE Innovations",
|
||||
"description": "Erase photobombers, tourists, power lines, and unwanted objects from photos free online with LaMa neural inpainting."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
{
|
||||
"id": "face.glow.portrait",
|
||||
"slug": "portrait-glow",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Studio Glow & Skin Illuminator",
|
||||
"hi": "एआई स्टूडियो ग्लो और त्वचा प्रदीपक"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Generates natural golden hour studio radiance, warm highlights, and epidermal luminescence.",
|
||||
"hi": "प्राकृतिक गोल्डन ऑवर स्टूडियो चमक और उज्ज्वल त्वचा का उत्पादन करें।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-glow-portrait-ai",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Select any selfie or studio photo.", "hi": "कोई भी सेल्फी या पोर्ट्रेट चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Neural studio lighting", "hi": "न्यूरल स्टूडियो लाइटिंग" },
|
||||
"desc": { "en": "Calculates depth and applies soft golden hour luminescence.", "hi": "सॉफ्ट गोल्डन ऑवर रोशनी लागू करता है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download radiant portrait", "hi": "चमकदार पोर्ट्रेट डाउनलोड करें" },
|
||||
"desc": { "en": "Save your glowing portrait or export in 4K.", "hi": "अपनी चमकती तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Warm studio skin glow with three-dimensional facial contouring"
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Does this alter my facial structure?",
|
||||
"a": "No, AI Studio Glow computes 3D surface normals to simulate physical studio rim and key lights without distorting facial anatomy."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "face.teeth.whitener", "face.eyebag.remove"],
|
||||
"seo": {
|
||||
"title": "AI Studio Glow & Skin Illuminator Free Online | CRE Innovations",
|
||||
"description": "Simulate warm golden hour studio lighting and radiant skin glow free online. Neural 3D portrait illumination."
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
'use client';
|
||||
|
||||
import React, { useState, useMemo, useRef, useEffect } from 'react';
|
||||
import React, { useState, useMemo, useRef } from 'react';
|
||||
import Link from 'next/link';
|
||||
import {
|
||||
Search,
|
||||
@@ -13,6 +13,7 @@ import {
|
||||
ChevronLeft,
|
||||
ChevronRight,
|
||||
X,
|
||||
Layers,
|
||||
} from 'lucide-react';
|
||||
import { ToolItem, CategoryItem, AppItem, resolveLocalised } from '@/types';
|
||||
|
||||
@@ -33,62 +34,75 @@ type ToolMediaConfig =
|
||||
| { type: 'comparison'; before: string; after: string }
|
||||
| { type: 'single'; image: string; badge: string };
|
||||
|
||||
// Media resolver for tool cards
|
||||
// Comprehensive media resolver for all tools
|
||||
function getToolMedia(tool: ToolItem): ToolMediaConfig {
|
||||
const example = tool.content?.examples?.[0];
|
||||
|
||||
// Specific bespoke high-res local media
|
||||
if (tool.slug === 'background-remover') {
|
||||
return {
|
||||
type: 'single',
|
||||
image: '/management/pages/home/sections/our-tools/background-remover/poster.jpg',
|
||||
badge: 'Alpha Matting',
|
||||
};
|
||||
}
|
||||
|
||||
if (tool.slug === 'polaroid-maker') {
|
||||
return {
|
||||
type: 'single',
|
||||
image: '/management/pages/home/sections/our-tools/polaroid-maker/image.jpg',
|
||||
badge: 'Vintage Polaroid',
|
||||
};
|
||||
}
|
||||
|
||||
const localDefaults: Record<string, { before: string; after: string }> = {
|
||||
const localDefaults: Record<string, ToolMediaConfig> = {
|
||||
'blemish-remover': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/blemish-remover/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/blemish-remover/after.jpg',
|
||||
},
|
||||
'teeth-whitener': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/teeth-whitener/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/teeth-whitener/after.jpg',
|
||||
},
|
||||
'eye-redness-remover': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/eye-redness-remover/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/eye-redness-remover/after.jpg',
|
||||
},
|
||||
'eye-bag-remover': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/eye-bag-remover/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/eye-bag-remover/after.jpg',
|
||||
},
|
||||
'portrait-glow': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/portrait-glow/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/portrait-glow/after.jpg',
|
||||
},
|
||||
'photo-enhancer': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/photo-enhancer/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/photo-enhancer/after.jpg',
|
||||
},
|
||||
'old-photo-restorer': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/old-photo-restorer/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/old-photo-restorer/after.jpg',
|
||||
},
|
||||
'colorization': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/colorization/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/colorization/after.jpg',
|
||||
},
|
||||
'cartoon-avatar': {
|
||||
type: 'comparison',
|
||||
before: '/management/pages/home/sections/our-tools/cartoon-avatar/before.jpg',
|
||||
after: '/management/pages/home/sections/our-tools/cartoon-avatar/after.jpg',
|
||||
},
|
||||
'object-eraser': {
|
||||
type: 'comparison',
|
||||
before: 'https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80',
|
||||
after: 'https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=800&auto=format&fit=crop&q=80',
|
||||
},
|
||||
'background-remover': {
|
||||
type: 'single',
|
||||
image: '/management/pages/home/sections/our-tools/background-remover/poster.jpg',
|
||||
badge: 'Alpha Matting',
|
||||
},
|
||||
'polaroid-maker': {
|
||||
type: 'single',
|
||||
image: '/management/pages/home/sections/our-tools/polaroid-maker/image.jpg',
|
||||
badge: 'Vintage Polaroid',
|
||||
},
|
||||
};
|
||||
|
||||
const matched = localDefaults[tool.slug];
|
||||
if (matched) {
|
||||
return {
|
||||
type: 'comparison',
|
||||
before: matched.before,
|
||||
after: matched.after,
|
||||
};
|
||||
}
|
||||
if (matched) return matched;
|
||||
|
||||
if (example && example.before && example.after) {
|
||||
return {
|
||||
@@ -285,7 +299,7 @@ export function ToolGridSection({
|
||||
const [searchQuery, setSearchQuery] = useState<string>('');
|
||||
const railRef = useRef<HTMLDivElement>(null);
|
||||
|
||||
// Group tools by category
|
||||
// Group all tools by category
|
||||
const categorizedTools = useMemo(() => {
|
||||
const orderedCategoryIds = [
|
||||
'portrait-retouch',
|
||||
@@ -321,6 +335,14 @@ export function ToolGridSection({
|
||||
});
|
||||
}, [tools, searchQuery, locale]);
|
||||
|
||||
// Categories to display based on selectedCategory
|
||||
const displayedCategories = useMemo(() => {
|
||||
if (selectedCategory === 'all') {
|
||||
return categorizedTools;
|
||||
}
|
||||
return categorizedTools.filter((group) => group.id === selectedCategory);
|
||||
}, [categorizedTools, selectedCategory]);
|
||||
|
||||
// Smooth scroll rail for categories
|
||||
const scrollRail = (direction: 'left' | 'right') => {
|
||||
if (railRef.current) {
|
||||
@@ -331,57 +353,30 @@ export function ToolGridSection({
|
||||
}
|
||||
};
|
||||
|
||||
// Scroll to category section
|
||||
const handleCategoryClick = (catId: string) => {
|
||||
// Fluid category tab selection with smooth pill centering
|
||||
const handleCategoryClick = (
|
||||
catId: string,
|
||||
e?: React.MouseEvent<HTMLButtonElement>
|
||||
) => {
|
||||
setSelectedCategory(catId);
|
||||
if (searchQuery) setSearchQuery('');
|
||||
|
||||
if (catId === 'all') {
|
||||
const el = document.getElementById('tools-catalog');
|
||||
if (el) {
|
||||
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||
}
|
||||
} else {
|
||||
const el = document.getElementById(`category-${catId}`);
|
||||
if (el) {
|
||||
el.scrollIntoView({ behavior: 'smooth', block: 'start' });
|
||||
}
|
||||
// Smoothly center the clicked pill in the scrolling rail
|
||||
if (e?.currentTarget) {
|
||||
e.currentTarget.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
inline: 'center',
|
||||
block: 'nearest',
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// Active category observer as user scrolls
|
||||
useEffect(() => {
|
||||
if (searchQuery) return;
|
||||
|
||||
const observer = new IntersectionObserver(
|
||||
(entries) => {
|
||||
entries.forEach((entry) => {
|
||||
if (entry.isIntersecting) {
|
||||
const id = entry.target.id.replace('category-', '');
|
||||
setSelectedCategory(id);
|
||||
}
|
||||
});
|
||||
},
|
||||
{
|
||||
rootMargin: '-30% 0px -60% 0px',
|
||||
threshold: 0,
|
||||
}
|
||||
);
|
||||
|
||||
categorizedTools.forEach((group) => {
|
||||
const el = document.getElementById(`category-${group.id}`);
|
||||
if (el) observer.observe(el);
|
||||
});
|
||||
|
||||
return () => observer.disconnect();
|
||||
}, [categorizedTools, searchQuery]);
|
||||
|
||||
return (
|
||||
<section id="tools-catalog" className="py-12 sm:py-16 bg-[#FAF8F5]">
|
||||
<section id="tools-catalog" className="py-10 sm:py-16 bg-[#FAF8F5]">
|
||||
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
||||
{/* Section Heading */}
|
||||
{(title || subtitle) && (
|
||||
<div className="text-center max-w-3xl mx-auto mb-10 sm:mb-14 space-y-3">
|
||||
<div className="text-center max-w-3xl mx-auto mb-8 sm:mb-12 space-y-3">
|
||||
{title && (
|
||||
<h2 className="text-3xl sm:text-4xl lg:text-5xl font-display font-black text-slate-900 tracking-tight">
|
||||
{resolveLocalised(title, locale)}
|
||||
@@ -395,18 +390,18 @@ export function ToolGridSection({
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Sticky Horizontal Scrolling Category Bar & Search */}
|
||||
{/* Sticky Fluid Horizontal Scrolling Category Bar & Search */}
|
||||
{(showCategoryFilter || showSearch) && (
|
||||
<div className="sticky top-[64px] sm:top-[72px] z-30 mb-12 -mx-4 sm:-mx-6 lg:-mx-8 px-4 sm:px-6 lg:px-8 py-3 bg-[#FAF8F5]/90 backdrop-blur-md border-y border-slate-200/80 shadow-[0_4px_20px_-10px_rgba(0,0,0,0.06)]">
|
||||
<div className="sticky top-[64px] sm:top-[72px] z-30 mb-10 -mx-4 sm:-mx-6 lg:-mx-8 px-4 sm:px-6 lg:px-8 py-3 bg-[#FAF8F5]/95 backdrop-blur-md border-y border-slate-200/80 shadow-[0_4px_20px_-10px_rgba(0,0,0,0.06)]">
|
||||
<div className="max-w-7xl mx-auto flex flex-col md:flex-row items-stretch md:items-center justify-between gap-3 sm:gap-4">
|
||||
{/* Category Rail with Smooth Scrolling */}
|
||||
{/* Category Rail with Fluid Scrolling */}
|
||||
{showCategoryFilter && (
|
||||
<div className="relative flex-1 flex items-center min-w-0">
|
||||
{/* Left Scroll Arrow */}
|
||||
<button
|
||||
onClick={() => scrollRail('left')}
|
||||
aria-label="Scroll categories left"
|
||||
className="hidden sm:flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-slate-600 hover:text-slate-900 shadow-sm shrink-0 mr-1.5 transition-colors"
|
||||
className="hidden sm:flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-slate-600 hover:text-slate-900 shadow-sm shrink-0 mr-1.5 transition-colors cursor-pointer"
|
||||
>
|
||||
<ChevronLeft className="w-4 h-4" />
|
||||
</button>
|
||||
@@ -419,13 +414,14 @@ export function ToolGridSection({
|
||||
>
|
||||
{/* All Categories Pill */}
|
||||
<button
|
||||
onClick={() => handleCategoryClick('all')}
|
||||
className={`shrink-0 flex items-center gap-2 px-4 py-2 rounded-full text-xs font-bold transition-all duration-200 shadow-sm ${
|
||||
onClick={(e) => handleCategoryClick('all', e)}
|
||||
className={`shrink-0 flex items-center gap-2 px-4 py-2 rounded-full text-xs font-bold transition-all duration-200 shadow-sm cursor-pointer ${
|
||||
selectedCategory === 'all' && !searchQuery
|
||||
? 'bg-blue-600 text-white shadow-blue-500/25 ring-2 ring-blue-500/30'
|
||||
? 'bg-blue-600 text-white shadow-blue-500/25 ring-2 ring-blue-500/30 scale-[1.02]'
|
||||
: 'bg-white text-slate-700 hover:text-slate-900 hover:bg-slate-50 border border-slate-200/90'
|
||||
}`}
|
||||
>
|
||||
<Layers className="w-3.5 h-3.5" />
|
||||
<span>All Categories</span>
|
||||
<span
|
||||
className={`text-[10px] font-mono px-1.5 py-0.2 rounded-full ${
|
||||
@@ -450,10 +446,10 @@ export function ToolGridSection({
|
||||
return (
|
||||
<button
|
||||
key={group.id}
|
||||
onClick={() => handleCategoryClick(group.id)}
|
||||
className={`shrink-0 flex items-center gap-2 px-3.5 py-2 rounded-full text-xs font-bold transition-all duration-200 shadow-sm ${
|
||||
onClick={(e) => handleCategoryClick(group.id, e)}
|
||||
className={`shrink-0 flex items-center gap-2 px-3.5 py-2 rounded-full text-xs font-bold transition-all duration-200 shadow-sm cursor-pointer ${
|
||||
isSelected
|
||||
? 'bg-blue-600 text-white shadow-blue-500/25 ring-2 ring-blue-500/30'
|
||||
? 'bg-blue-600 text-white shadow-blue-500/25 ring-2 ring-blue-500/30 scale-[1.02]'
|
||||
: 'bg-white text-slate-700 hover:text-slate-900 hover:bg-slate-50 border border-slate-200/90'
|
||||
}`}
|
||||
>
|
||||
@@ -479,7 +475,7 @@ export function ToolGridSection({
|
||||
<button
|
||||
onClick={() => scrollRail('right')}
|
||||
aria-label="Scroll categories right"
|
||||
className="hidden sm:flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-slate-600 hover:text-slate-900 shadow-sm shrink-0 ml-1.5 transition-colors"
|
||||
className="hidden sm:flex items-center justify-center w-8 h-8 rounded-full bg-white border border-slate-200 text-slate-600 hover:text-slate-900 shadow-sm shrink-0 ml-1.5 transition-colors cursor-pointer"
|
||||
>
|
||||
<ChevronRight className="w-4 h-4" />
|
||||
</button>
|
||||
@@ -500,7 +496,7 @@ export function ToolGridSection({
|
||||
{searchQuery && (
|
||||
<button
|
||||
onClick={() => setSearchQuery('')}
|
||||
className="absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600"
|
||||
className="absolute right-3 top-1/2 -translate-y-1/2 text-slate-400 hover:text-slate-600 cursor-pointer"
|
||||
>
|
||||
<X className="w-3.5 h-3.5" />
|
||||
</button>
|
||||
@@ -523,7 +519,7 @@ export function ToolGridSection({
|
||||
</h3>
|
||||
<button
|
||||
onClick={() => setSearchQuery('')}
|
||||
className="text-xs font-mono font-bold text-blue-600 hover:text-blue-700 underline"
|
||||
className="text-xs font-mono font-bold text-blue-600 hover:text-blue-700 underline cursor-pointer"
|
||||
>
|
||||
Clear Search
|
||||
</button>
|
||||
@@ -542,11 +538,11 @@ export function ToolGridSection({
|
||||
</p>
|
||||
<p className="text-xs text-slate-500">
|
||||
Try searching for "blemish", "restoration",
|
||||
"background", or "avatar".
|
||||
"cutout", or "avatar".
|
||||
</p>
|
||||
<button
|
||||
onClick={() => setSearchQuery('')}
|
||||
className="mt-2 inline-flex items-center px-4 py-2 rounded-full bg-blue-600 text-white text-xs font-bold shadow-sm"
|
||||
className="mt-2 inline-flex items-center px-4 py-2 rounded-full bg-blue-600 text-white text-xs font-bold shadow-sm cursor-pointer"
|
||||
>
|
||||
View All Tools
|
||||
</button>
|
||||
@@ -554,9 +550,24 @@ export function ToolGridSection({
|
||||
)}
|
||||
</div>
|
||||
) : (
|
||||
/* Categorized Tools Sections */
|
||||
<div className="space-y-14 sm:space-y-16">
|
||||
{categorizedTools.map((group) => {
|
||||
/* Categorized Tools Sections (Fluid, All 12 Tools Included) */
|
||||
<div className="space-y-12 sm:space-y-16">
|
||||
{/* Quick reset button if filtered to single category */}
|
||||
{selectedCategory !== 'all' && (
|
||||
<div className="flex items-center justify-between pb-2">
|
||||
<button
|
||||
onClick={() => setSelectedCategory('all')}
|
||||
className="inline-flex items-center gap-1.5 text-xs font-mono font-bold text-blue-600 hover:text-blue-700 bg-blue-50 border border-blue-200 px-3 py-1.5 rounded-full transition-colors cursor-pointer shadow-sm"
|
||||
>
|
||||
<span>← Show All {tools.length} Tools</span>
|
||||
</button>
|
||||
<span className="text-xs text-slate-400 font-mono">
|
||||
Filtered Category
|
||||
</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{displayedCategories.map((group) => {
|
||||
const theme = CATEGORY_THEMES[group.id];
|
||||
const catName = group.category
|
||||
? resolveLocalised(group.category.name, locale)
|
||||
@@ -569,7 +580,7 @@ export function ToolGridSection({
|
||||
<div
|
||||
key={group.id}
|
||||
id={`category-${group.id}`}
|
||||
className="scroll-mt-36 space-y-6"
|
||||
className="space-y-6"
|
||||
>
|
||||
{/* Category Header */}
|
||||
<div className="flex flex-col sm:flex-row sm:items-end justify-between gap-3 pb-4 border-b border-slate-200/90">
|
||||
|
||||
@@ -51,32 +51,8 @@ export function getPageConfig(slug: string): PageConfig | null {
|
||||
|
||||
export function getAllTools(): ToolItem[] {
|
||||
toolsCache.clear();
|
||||
// 1. Prioritize management/pages/tools/[slug]/tool.config.json
|
||||
const mgmtToolsDir = path.join(MANAGEMENT_DIR, 'pages', 'tools');
|
||||
if (fs.existsSync(mgmtToolsDir)) {
|
||||
const slugs = fs.readdirSync(mgmtToolsDir);
|
||||
const tools: ToolItem[] = [];
|
||||
for (const slug of slugs) {
|
||||
const configPath = path.join(mgmtToolsDir, slug, 'tool.config.json');
|
||||
if (fs.existsSync(configPath)) {
|
||||
const tool = readJsonFile<any>(configPath);
|
||||
if (tool && tool.status === 'published') {
|
||||
// Normalize media paths so before/after point to live management media
|
||||
if (tool.media?.before && tool.content?.examples?.[0]) {
|
||||
tool.content.examples[0].before = tool.media.before;
|
||||
}
|
||||
if (tool.media?.after && tool.content?.examples?.[0]) {
|
||||
tool.content.examples[0].after = tool.media.after;
|
||||
}
|
||||
tools.push(tool);
|
||||
toolsCache.set(tool.slug, tool);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (tools.length > 0) return tools;
|
||||
}
|
||||
|
||||
// 2. Fallback to content/collections/tools
|
||||
// 1. Load baseline from content/collections/tools
|
||||
const toolsDir = path.join(CONTENT_DIR, 'collections', 'tools');
|
||||
if (fs.existsSync(toolsDir)) {
|
||||
const files = fs.readdirSync(toolsDir).filter((f) => f.endsWith('.json'));
|
||||
@@ -87,6 +63,29 @@ export function getAllTools(): ToolItem[] {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 2. Layer management/pages/tools/[slug]/tool.config.json on top
|
||||
const mgmtToolsDir = path.join(MANAGEMENT_DIR, 'pages', 'tools');
|
||||
if (fs.existsSync(mgmtToolsDir)) {
|
||||
const slugs = fs.readdirSync(mgmtToolsDir);
|
||||
for (const slug of slugs) {
|
||||
const configPath = path.join(mgmtToolsDir, slug, 'tool.config.json');
|
||||
if (fs.existsSync(configPath)) {
|
||||
const mgmtTool = readJsonFile<any>(configPath);
|
||||
if (mgmtTool && mgmtTool.status === 'published') {
|
||||
// Normalize media paths so before/after point to live management media
|
||||
if (mgmtTool.media?.before && mgmtTool.content?.examples?.[0]) {
|
||||
mgmtTool.content.examples[0].before = mgmtTool.media.before;
|
||||
}
|
||||
if (mgmtTool.media?.after && mgmtTool.content?.examples?.[0]) {
|
||||
mgmtTool.content.examples[0].after = mgmtTool.media.after;
|
||||
}
|
||||
toolsCache.set(mgmtTool.slug, mgmtTool);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Array.from(toolsCache.values());
|
||||
}
|
||||
|
||||
|
||||