feat(tools): dynamic 5-archetype tool pages, masking editor, alternating features, and studio workflow
This commit is contained in:
@@ -454,6 +454,50 @@
|
||||
}
|
||||
],
|
||||
"headers": {}
|
||||
},
|
||||
{
|
||||
"id": "api-dress-changer",
|
||||
"title": "AI Fashion & Dress Pattern Changer",
|
||||
"summary": "Inpaint custom dresses and patterns onto portrait silhouettes.",
|
||||
"full_url": "http://127.0.0.1:8888/apis/dress/process/",
|
||||
"path": "/apis/dress/process/",
|
||||
"port": "8888",
|
||||
"method": "POST",
|
||||
"resp": "image/jpeg",
|
||||
"params": [
|
||||
{ "n": "image", "ty": "file (binary)", "rq": true, "lc": "multipart/form-data" },
|
||||
{ "n": "mask", "ty": "file (binary)", "rq": true, "lc": "multipart/form-data" }
|
||||
],
|
||||
"headers": {}
|
||||
},
|
||||
{
|
||||
"id": "api-text-to-image",
|
||||
"title": "AI Creative Diffusion Studio",
|
||||
"summary": "Generate photorealistic imagery from natural language prompts.",
|
||||
"full_url": "http://127.0.0.1:8888/apis/t2i/process/",
|
||||
"path": "/apis/t2i/process/",
|
||||
"port": "8888",
|
||||
"method": "POST",
|
||||
"resp": "image/jpeg",
|
||||
"params": [
|
||||
{ "n": "prompt", "ty": "string", "rq": true, "lc": "multipart/form-data" }
|
||||
],
|
||||
"headers": {}
|
||||
},
|
||||
{
|
||||
"id": "api-face-swap",
|
||||
"title": "Dual-Image Face & Identity Fusion",
|
||||
"summary": "Transfer facial identity onto reference target portraits.",
|
||||
"full_url": "http://127.0.0.1:8888/apis/swap/process/",
|
||||
"path": "/apis/swap/process/",
|
||||
"port": "8888",
|
||||
"method": "POST",
|
||||
"resp": "image/jpeg",
|
||||
"params": [
|
||||
{ "n": "image", "ty": "file (binary)", "rq": true, "lc": "multipart/form-data" },
|
||||
{ "n": "reference_image", "ty": "file (binary)", "rq": true, "lc": "multipart/form-data" }
|
||||
],
|
||||
"headers": {}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"pageType": "image-only",
|
||||
"showThumbnailsSection": false,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
@@ -60,6 +62,49 @@
|
||||
"caption": "Natural blemish clean up with intact skin texture"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"title": { "en": "Sub-Pore Micro-Inpainting", "hi": "सूक्ष्म त्वचा छिद्र संरक्षण" },
|
||||
"description": {
|
||||
"en": "Our neural model isolates individual acne spots, scars, and dark pigments without blurring surrounding skin. Micro-pores and natural epidermal texture remain intact at 100% fidelity.",
|
||||
"hi": "हमारा न्यूरल मॉडल आसपास की त्वचा को धुंधला किए बिना व्यक्तिगत मुंहासों और दाग-धब्बों को हटाता है।"
|
||||
},
|
||||
"image": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Sub-Pore Precision", "hi": "सटीक संपादन" },
|
||||
"caption": { "en": "Skin micro-texture preserved after acne removal", "hi": "प्राकृतिक छिद्र सुरक्षित" },
|
||||
"metrics": [
|
||||
{ "label": "Resolution", "value": "Up to 4K" },
|
||||
{ "label": "Inference Time", "value": "350ms" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": { "en": "Frequency Separation Lighting Equalizer", "hi": "समान प्रकाश संतुलन" },
|
||||
"description": {
|
||||
"en": "Dual-stream neural frequency decomposition balances harsh flash hotspots, under-eye redness, and skin discolorations while keeping high-frequency specular reflections crisp.",
|
||||
"hi": "दोहरी-धारा तकनीक असमान प्रकाश और चेहरे की लालिमा को संतुलित करती है।"
|
||||
},
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Tone Balancing", "hi": "रंग संतुलन" },
|
||||
"caption": { "en": "Even studio lighting across all skin types", "hi": "प्राकृतिक स्टूडियो लाइटिंग" },
|
||||
"metrics": [
|
||||
{ "label": "Skin Types", "value": "Fitzpatrick I-VI" },
|
||||
{ "label": "Storage Retention", "value": "0 Bytes" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": { "en": "Lossless Studio Specimen Export", "hi": "हानिरहित 4K एक्सपोर्ट" },
|
||||
"description": {
|
||||
"en": "Export directly in pristine lossless PNG or RAW format, ready for editorial publishing, modeling portfolios, or commercial magazine prints.",
|
||||
"hi": "उच्च गुणवत्ता वाले बिना किसी संपीड़न के फोटो तुरंत डाउनलोड करें।"
|
||||
},
|
||||
"image": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Magazine Ready", "hi": "प्रोफेशनल ग्रेड" },
|
||||
"metrics": [
|
||||
{ "label": "Color Space", "value": "sRGB / DCI-P3" },
|
||||
{ "label": "Bit Depth", "value": "16-bit float" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Does this make the skin look plastic or blurry?",
|
||||
|
||||
@@ -14,6 +14,49 @@
|
||||
"homeApp": "art-studio-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"pageType": "image-thumbnail",
|
||||
"showThumbnailsSection": true,
|
||||
"thumbnailPlacement": "both",
|
||||
"thumbnails": [
|
||||
{
|
||||
"id": "anime-cel",
|
||||
"label": { "en": "Anime Cel", "hi": "एनीमे सेल" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "anime",
|
||||
"badge": "Popular",
|
||||
"description": { "en": "Crisp manga ink contours and vibrant Japanese anime cel shading.", "hi": "एनीमे स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "pixar-3d",
|
||||
"label": { "en": "3D Animation", "hi": "3D एनीमेशन" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1563089145-599997674d42?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "3d-toon",
|
||||
"badge": "Cinema",
|
||||
"description": { "en": "Playful Pixar & Disney style 3D sculpted characters with soft subsurface glow.", "hi": "3D स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "comic-ink",
|
||||
"label": { "en": "Graphic Novel", "hi": "ग्राफिक नॉवेल" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1534447677768-be436bb09401?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "comic",
|
||||
"description": { "en": "Bold cross-hatching, halftone dots, and vintage comic book ink aesthetic.", "hi": "कॉमिक स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "cyber-neon",
|
||||
"label": { "en": "Cyberpunk Synth", "hi": "साइबरपंक" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "cyberpunk",
|
||||
"badge": "Futuristic",
|
||||
"description": { "en": "Neon rim lights, holographic reflections, and dark futuristic palette.", "hi": "साइबर स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "oil-painting",
|
||||
"label": { "en": "Impressionist Oil", "hi": "तैल चित्र" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1579783900882-c0d3dad7b119?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "oil",
|
||||
"description": { "en": "Thick impasto brushwork, textured canvas grain, and warm classic oils.", "hi": "ऑयल पेंटिंग" }
|
||||
}
|
||||
],
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
@@ -52,6 +95,47 @@
|
||||
"caption": "Crisp manga ink contouring and anime cel color"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Anime Cel Rendering", "hi": "एनीमे सेल रेंडरिंग" },
|
||||
"title": {
|
||||
"en": "Authentic Japanese Animation & Manga Contours",
|
||||
"hi": "जापानी एनीमेशन और मंगा लाइनवर्क"
|
||||
},
|
||||
"description": {
|
||||
"en": "CartoonGAN extracts high-contrast vector-like ink boundaries around facial contours, eyes, and locks of hair while re-synthesizing flat tonal cel shading reminiscent of premium Tokyo anime productions.",
|
||||
"hi": "कार्टूनगैन चेहरे, आंखों और बालों के चारों ओर हाई-कंट्रास्ट मंगा इंक रेखाएं खींचता है और प्रीमियम टोक्यो एनीमे की तरह खूबसूरत शेडिंग लागू करता है।"
|
||||
},
|
||||
"caption": "Crisp edge detection preserving facial recognition and expressions."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1563089145-599997674d42?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "3D Sculpting", "hi": "3D स्कल्पटिंग" },
|
||||
"title": {
|
||||
"en": "Cinema-Grade 3D Character Stylization",
|
||||
"hi": "सिनेमा-ग्रेड 3D कैरेक्टर स्टाइलाइज़ेशन"
|
||||
},
|
||||
"description": {
|
||||
"en": "Switch with a single click to stylized 3D feature animation aesthetic with soft subsurface skin scattering, round luminous eyes, and whimsical proportions suitable for digital avatars and profile cards.",
|
||||
"hi": "सिंगल क्लिक में 3D एनीमेशन स्टाइल में बदलें, जिसमें चमकदार आंखें और सुरुचिपूर्ण प्रोफ़ाइल अनुपात शामिल हैं।"
|
||||
},
|
||||
"caption": "Playful subsurface lighting simulation with depth-aware rendering."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1579783900882-c0d3dad7b119?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Gallery Canvas", "hi": "गैलरी कैनवास" },
|
||||
"title": {
|
||||
"en": "Expressive Fine Art & Textured Impasto Oils",
|
||||
"hi": "अभिव्यंजक कला और टेक्स्चर्ड ऑयल्स"
|
||||
},
|
||||
"description": {
|
||||
"en": "Explore classical impressionist brushwork where individual strokes of virtual oil paint follow the curvature of your face, capturing mood and vibrant palette harmonies.",
|
||||
"hi": "शास्त्रीय ऑयल पेंटिंग शैली का अन्वेषण करें जहां वर्चुअल ब्रश के स्ट्रोक आपके चेहरे के घुमाव का अनुसरण करते हैं।"
|
||||
},
|
||||
"caption": "Simulated physical oil pigment physics and tactile canvas textures."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Will my friends recognize me in the cartoon?",
|
||||
|
||||
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"id": "creative.dress.changer",
|
||||
"slug": "dress-changer",
|
||||
"status": "published",
|
||||
"category": "creative-effects",
|
||||
"pageType": "masking",
|
||||
"showThumbnailsSection": true,
|
||||
"thumbnailPlacement": "both",
|
||||
"name": {
|
||||
"en": "AI Fashion & Dress Changer",
|
||||
"hi": "एआई फैशन और ड्रेस चेंजर"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Try on luxury outfits, summer florals, evening gowns, and custom fashion textures with guided auto-masking.",
|
||||
"hi": "ऑटो-मास्किंग के साथ नए परिधान, गाउन और फैशनेबल कपड़े पहनकर देखें।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": ["art-studio-app"],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-dress-changer",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"thumbnails": [
|
||||
{
|
||||
"id": "cocktail-black",
|
||||
"label": { "en": "Black Velvet Cocktail", "hi": "ब्लैक वेलवेट कॉकटेल" },
|
||||
"value": "cocktail-black",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Trending"
|
||||
},
|
||||
{
|
||||
"id": "summer-floral",
|
||||
"label": { "en": "Silk Floral Sundress", "hi": "सिल्क फ्लोरल सनड्रेस" },
|
||||
"value": "summer-floral",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Vibrant"
|
||||
},
|
||||
{
|
||||
"id": "evening-gown",
|
||||
"label": { "en": "Emerald Gala Gown", "hi": "एमराल्ड गाला गाउन" },
|
||||
"value": "evening-gown",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1524504388940-b1c1722653e1?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1524504388940-b1c1722653e1?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Couture"
|
||||
},
|
||||
{
|
||||
"id": "casual-denim",
|
||||
"label": { "en": "Denim & Leather Moto", "hi": "डेनिम और लेदर" },
|
||||
"value": "casual-denim",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=300&auto=format&fit=crop&q=80"
|
||||
},
|
||||
{
|
||||
"id": "royal-sari",
|
||||
"label": { "en": "Royal Brocade Sari", "hi": "शाही ब्रोकेड साड़ी" },
|
||||
"value": "royal-sari",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Heritage"
|
||||
}
|
||||
],
|
||||
"maskingConfig": {
|
||||
"autoMask": {
|
||||
"enabled": true,
|
||||
"endpoint": "/api/mask/auto-detect",
|
||||
"label": "Auto-Detect Clothing"
|
||||
},
|
||||
"maskParamName": "mask",
|
||||
"imageParamName": "image",
|
||||
"brushSizes": [16, 28, 42, 60],
|
||||
"defaultBrushSize": 32,
|
||||
"maskColor": "rgba(168, 85, 247, 0.65)"
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Select style preset", "hi": "स्टाइल प्रीसेट चुनें" },
|
||||
"desc": { "en": "Choose from our curated fashion gallery or enter custom pattern parameters.", "hi": "हमारी फैशन गैलरी से चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Upload any full-body or half-body portrait photo.", "hi": "कोई भी पोर्ट्रेट फोटो अपलोड करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Auto-mask & generate", "hi": "ऑटो-मास्क और जनरेट करें" },
|
||||
"desc": { "en": "1-click auto garment segmentation with manual touch-up and instant diffusion.", "hi": "1-क्लिक ऑटो सेग्मेंटेशन और तुरंत इनपेंटिंग।" }
|
||||
}
|
||||
],
|
||||
"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": "Garment inpainting with fabric fold physics preservation"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Garment Diffusion", "hi": "गारमेंट डिफ्यूजन" },
|
||||
"title": {
|
||||
"en": "Dynamic Silhouette Fitting with Anatomical Awareness",
|
||||
"hi": "शारीरिक संरचना के अनुसार सटीक फिटिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "Our garment synthesis engine understands human skeletal poses and lighting angles, draping fabrics naturally around shoulders, hips, and limbs with authentic crease dynamics.",
|
||||
"hi": "हमारा इंजन मानव शरीर की मुद्रा और प्रकाश कोणों को समझता है, और स्वाभाविक क्रीज गतिशीलता के साथ कपड़ों को शरीर पर फिट करता है।"
|
||||
},
|
||||
"caption": "Photorealistic cloth simulation matching ambient lighting conditions."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Flexible Workflows", "hi": "लचीला वर्कफ़्लो" },
|
||||
"title": {
|
||||
"en": "Select Styles Before or After Uploading Photos",
|
||||
"hi": "फोटो अपलोड करने से पहले या बाद में स्टाइल चुनें"
|
||||
},
|
||||
"description": {
|
||||
"en": "Pick fashion looks from the gallery before uploading your portrait, or toggle through different styles inside the studio to compare looks in real-time without re-uploading.",
|
||||
"hi": "फोटो अपलोड करने से पहले गैलरी से स्टाइल चुनें, या बिना दोबारा अपलोड किए वास्तविक समय में विभिन्न शैलियों की तुलना करें।"
|
||||
},
|
||||
"caption": "Instant multi-look generation directly inside the interactive workspace."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1524504388940-b1c1722653e1?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Hybrid Masking", "hi": "हाइब्रिड मास्किंग" },
|
||||
"title": {
|
||||
"en": "Neural Auto-Masking with Granular Brush Overrides",
|
||||
"hi": "न्यूरल ऑटो-मास्किंग और विस्तृत ब्रश नियंत्रण"
|
||||
},
|
||||
"description": {
|
||||
"en": "Let AI isolate clothing contours automatically, then adjust collars, hemlines, and sleeves using the precision brush and eraser tools with multi-level undo/redo.",
|
||||
"hi": "एआई को कपड़ों की रूपरेखा स्वचालित रूप से पहचानने दें, फिर ब्रश और इरेज़र से कॉलर, हेमलाइन और आस्तीन को बारीक रूप से समायोजित करें।"
|
||||
},
|
||||
"caption": "Surgical mask boundary control for studio-grade results."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does the auto-mask feature detect clothes?",
|
||||
"a": "It utilizes a specialized human parsing model that segments clothing articles from skin, hair, and backgrounds in milliseconds."
|
||||
},
|
||||
{
|
||||
"q": "Can I manually adjust the mask if parts are missed?",
|
||||
"a": "Absolutely. You can paint additional areas with the brush or erase unwanted sections with the eraser before generating the new outfit."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "cutout.lama.erase"],
|
||||
"seo": {
|
||||
"title": "AI Dress & Outfit Changer Online Free | Virtual Fitting Room",
|
||||
"description": "Change clothes, try on evening gowns, suits, and dresses online free using AI clothing segmentation and diffusion inpainting."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"id": "portrait.face.swap",
|
||||
"slug": "face-swap",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"pageType": "two-images",
|
||||
"showThumbnailsSection": false,
|
||||
"name": {
|
||||
"en": "AI Face & Identity Swap",
|
||||
"hi": "एआई फेस स्वैप और आइडेंटिटी फ्यूजन"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Seamlessly transfer facial identity from a source portrait onto any target photo with automatic pose, lighting, and skin-tone matching.",
|
||||
"hi": "स्वचालित प्रकाश और स्किन-टोन मैचिंग के साथ किसी भी तस्वीर पर चेहरे की पहचान को स्थानांतरित करें।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-face-swap",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"twoImagesConfig": {
|
||||
"firstImageParam": "image",
|
||||
"secondImageParam": "reference_image",
|
||||
"firstImageLabel": {
|
||||
"en": "Target Scene / Body Photo",
|
||||
"hi": "मुख्य सीन / बॉडी फोटो"
|
||||
},
|
||||
"secondImageLabel": {
|
||||
"en": "Source Face Portrait",
|
||||
"hi": "स्रोत चेहरा पोर्ट्रेट"
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload target photo", "hi": "लक्ष्य फोटो अपलोड करें" },
|
||||
"desc": { "en": "Select the photo or artistic scene where you want to place the new face.", "hi": "वह फोटो चुनें जिस पर आप नया चेहरा लगाना चाहते हैं।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Upload source face", "hi": "स्रोत चेहरा अपलोड करें" },
|
||||
"desc": { "en": "Upload a clear portrait of the face you want to transfer.", "hi": "उस चेहरे का स्पष्ट पोर्ट्रेट अपलोड करें जिसे बदलना है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Harmonize & download", "hi": "मैच करें और डाउनलोड करें" },
|
||||
"desc": { "en": "AI matches lighting, skin tone, and expressions seamlessly.", "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": "High-fidelity identity transfer preserving head pose and scene shadows"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Identity Preservation", "hi": "पहचान सुरक्षा" },
|
||||
"title": {
|
||||
"en": "Deep Facial Landmark & Identity Embedding Alignment",
|
||||
"hi": "गहरे फेशियल लैंडमार्क और पहचान मिलान"
|
||||
},
|
||||
"description": {
|
||||
"en": "Our model extracts 512-dimensional facial biometric embeddings to retain unique personal features—including eye shape, lip contours, and smile creases—while flawlessly conforming to the target pose.",
|
||||
"hi": "हमारा मॉडल अद्वितीय व्यक्तिगत विशेषताओं (आंखों का आकार, चेहरे की रेखाएं) को बनाए रखते हुए लक्ष्य मुद्रा के साथ सटीक रूप से मेल खाता है।"
|
||||
},
|
||||
"caption": "Biometric feature alignment ensuring authentic resemblance."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Photometric Matching", "hi": "फोटोमेट्रिक मैचिंग" },
|
||||
"title": {
|
||||
"en": "Automatic Ambient Color Calibration & Skin-Tone Blending",
|
||||
"hi": "स्वचालित एम्बिएंट कलर और स्किन-टोन ब्लेंडिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "Never suffer from mismatched skin tones or harsh cutout edges. The photometric transfer module computes specular highlights and ambient bounce light from the target scene, adapting the source face naturally.",
|
||||
"hi": "लक्ष्य दृश्य से प्रकाश और स्किन टोन को स्वचालित रूप से समायोजित करता है ताकि कोई कृत्रिम कटआउट किनारा न दिखाई दे।"
|
||||
},
|
||||
"caption": "Dynamic color harmonization across different lighting temperatures."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Sub-Pore Restoration", "hi": "सब-पोर रिस्टोरेशन" },
|
||||
"title": {
|
||||
"en": "High-Frequency Skin Texture & Natural Expression Transfer",
|
||||
"hi": "हाई-फ़्रीक्वेंसी स्किन टेक्सचर और स्वाभाविक भाव"
|
||||
},
|
||||
"description": {
|
||||
"en": "Target facial expressions—such as laughs, smirks, and glances—are mapped faithfully onto the source identity, accompanied by high-frequency pores, eyelashes, and natural hair strands.",
|
||||
"hi": "स्वाभाविक भावों (मुस्कान, दृष्टि) को उच्च-रिज़ॉल्यूशन त्वचा के छिद्रों और पलकों के साथ स्थानांतरित किया जाता है।"
|
||||
},
|
||||
"caption": "Real facial micro-expressions preserved without uncanny artifacts."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "What kind of photos give the best face swap results?",
|
||||
"a": "Clear, well-lit, front-facing or slight-angle portraits without heavy shadows or sunglasses yield the sharpest and most convincing swaps."
|
||||
},
|
||||
{
|
||||
"q": "Are the two uploaded photos stored on the server?",
|
||||
"a": "Never. All inference runs in ephemeral volatile RAM and both source and target images are immediately purged upon session completion."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "art.cartoon.avatar"],
|
||||
"seo": {
|
||||
"title": "AI Face Swap Online Free | Dual-Image Identity Transfer",
|
||||
"description": "Swap faces between two photos seamlessly online free. Advanced neural identity fusion with realistic lighting and expression matching."
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,8 @@
|
||||
"slug": "object-eraser",
|
||||
"status": "published",
|
||||
"category": "background-cutout",
|
||||
"pageType": "masking",
|
||||
"showThumbnailsSection": false,
|
||||
"name": {
|
||||
"en": "LaMa AI Object Eraser",
|
||||
"hi": "लामा एआई ऑब्जेक्ट इरेज़र"
|
||||
@@ -31,6 +33,18 @@
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"maskingConfig": {
|
||||
"autoMask": {
|
||||
"enabled": true,
|
||||
"endpoint": "/api/mask/auto-detect",
|
||||
"label": "Auto Detect Subject"
|
||||
},
|
||||
"maskParamName": "mask",
|
||||
"imageParamName": "image",
|
||||
"brushSizes": [12, 24, 36, 48, 64],
|
||||
"defaultBrushSize": 32,
|
||||
"maskColor": "rgba(239, 68, 68, 0.65)"
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
@@ -38,12 +52,12 @@
|
||||
"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": "Brush or auto-detect", "hi": "ब्रश या ऑटो डिटेक्ट करें" },
|
||||
"desc": { "en": "Paint the mask over objects to erase or click auto-detect to isolate foregrounds.", "hi": "मिटाने के लिए मास्क पेंट करें या फोरग्राउंड अलग करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download clean photo", "hi": "साफ फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Download clean photo or open in Magic Cutout Studio.", "hi": "साफ तस्वीर डाउनलोड करें।" }
|
||||
"desc": { "en": "Inspect before/after in the studio and export pristine results in full resolution.", "hi": "स्टूडियो में परिणाम देखें और पूर्ण रिज़ॉल्यूशन में डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
@@ -53,10 +67,59 @@
|
||||
"caption": "Context-aware object erasing with natural texture reconstruction"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "LaMa Architecture", "hi": "लामा आर्किटेक्चर" },
|
||||
"title": {
|
||||
"en": "Fast Fourier Transform Inpainting for Wide Context",
|
||||
"hi": "विशाल संदर्भ के लिए फास्ट फूरियर ट्रांसफॉर्म इनपेंटिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "Unlike legacy patch-based clone stamp tools, our model relies on deep Fourier convolutions to read repetitive structural patterns such as floor tiling, ocean waves, and brick walls across the entire frame.",
|
||||
"hi": "पारंपरिक क्लोन स्टैम्प टूल के विपरीत, हमारा मॉडल पूरे फ्रेम में पैटर्न और टेक्सचर का विश्लेषण करने के लिए डीप फूरियर कनवल्शन का उपयोग करता है।"
|
||||
},
|
||||
"caption": "Large-mask reconstruction maintaining global geometric alignment."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Smart Auto-Detection", "hi": "स्मार्ट ऑटो डिटेक्शन" },
|
||||
"title": {
|
||||
"en": "1-Click Auto Foreground Masking with Fine Manual Touch-Up",
|
||||
"hi": "1-क्लिक ऑटो फोरग्राउंड मास्किंग और फाइन मैनुअल टच-अप"
|
||||
},
|
||||
"description": {
|
||||
"en": "Let neural saliency networks detect and isolate subjects with one click, or use the interactive brush to add custom strokes, adjust brush sizes, erase unwanted areas, and undo/redo edits effortlessly.",
|
||||
"hi": "न्यूरल नेटवर्क को एक क्लिक में विषयों का पता लगाने दें, या कस्टम स्ट्रोक जोड़ने, ब्रश का आकार बदलने और संपादन को पूर्ववत/फिर से करने के लिए ब्रश का उपयोग करें।"
|
||||
},
|
||||
"caption": "Seamless combination of automated saliency segmentation and high-precision brush control."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Edge Feathering", "hi": "एज फेदरिंग" },
|
||||
"title": {
|
||||
"en": "Zero Artifact Blending Along Complex Boundaries",
|
||||
"hi": "जटिल सीमाओं पर शून्य आर्टिफैक्ट ब्लेंडिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "The generated output synthesizes photographic grain matching your source image's ISO and optical blur profile, eliminating telltale blur spots or synthetic smudging.",
|
||||
"hi": "उत्पन्न आउटपुट आपकी स्रोत छवि के अनाज और ऑप्टिकल प्रोफाइल से मेल खाता है, जिससे कोई कृत्रिम धुंधलापन नहीं दिखता।"
|
||||
},
|
||||
"caption": "Grain-matched Poisson blending ensuring unnoticeable touch-ups."
|
||||
}
|
||||
],
|
||||
"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."
|
||||
},
|
||||
{
|
||||
"q": "Can I erase multiple objects in one pass?",
|
||||
"a": "Yes! You can paint over any number of objects, photobombers, or watermarks across the photo before clicking Process Photo."
|
||||
},
|
||||
{
|
||||
"q": "What happens to the mask I painted?",
|
||||
"a": "The mask is rendered client-side into a high-precision binary alpha channel and processed ephemeral in GPU RAM with zero server storage."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
"slug": "photo-enhancer",
|
||||
"status": "published",
|
||||
"category": "restoration",
|
||||
"pageType": "image-only",
|
||||
"showThumbnailsSection": false,
|
||||
"name": {
|
||||
"en": "Ultra HD AI Photo Enhancer",
|
||||
"hi": "अल्ट्रा एचडी एआई फोटो एन्हांसर"
|
||||
@@ -45,12 +47,12 @@
|
||||
"desc": { "en": "Upload blurry, out-of-focus, or pixelated photos.", "hi": "धुंधली या कम रिज़ॉल्यूशन वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Select Mode", "hi": "मोड चुनें" },
|
||||
"desc": { "en": "Choose Ultra HD 2x for maximum sharpness or Balanced Clarity.", "hi": "अल्ट्रा एचडी या संतुलित स्पष्टता चुनें।" }
|
||||
"title": { "en": "Process in Studio", "hi": "स्टूडियो में प्रोसेस करें" },
|
||||
"desc": { "en": "Single-click neural upscaling restores microscopic iris and skin textures.", "hi": "एक क्लिक में न्यूरल अपस्केलिंग चेहरे और बनावट को बहाल करती है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download HD", "hi": "एचडी डाउनलोड करें" },
|
||||
"desc": { "en": "Enjoy stunning sharpness or unlock 8x 4K upscaling in Enhance Ultra AI.", "hi": "शानदार शार्पनेस का आनंद लें या ऐप में 8x 4K अनलॉक करें।" }
|
||||
"desc": { "en": "Inspect before/after in the studio slider and download crystal clear results.", "hi": "स्टूडियो स्लाइडर में तुलना करें और स्पष्ट तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
@@ -60,6 +62,47 @@
|
||||
"caption": "Reconstructed facial details and iris sharpness"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Micro-Detail Restoration", "hi": "माइक्रो-डिटेल रिस्टोरेशन" },
|
||||
"title": {
|
||||
"en": "Sub-Pixel Facial Feature Reconstruction",
|
||||
"hi": "सब-पिक्सेल फेशियल फ़ीचर पुनर्निर्माण"
|
||||
},
|
||||
"description": {
|
||||
"en": "Traditional interpolation blurs edges. Our deep residual neural network hallucinates realistic high-frequency micro-details, including individual eyelashes, iris rings, skin pores, and hair strands without plastic-like smoothing.",
|
||||
"hi": "हमारा डीप रेसिड्यूअल न्यूरल नेटवर्क बिना किसी प्लास्टिक जैसे प्रभाव के पलकों, आंखों की पुतलियों और त्वचा के छिद्रों जैसे यथार्थवादी विवरणों का पुनर्निर्माण करता है।"
|
||||
},
|
||||
"caption": "Generative facial prior restoration tuned for authentic portrait clarity."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Motion Deblurring", "hi": "मोशन डिब्लरिंग" },
|
||||
"title": {
|
||||
"en": "Advanced Blind Deconvolution & Motion Blur Correction",
|
||||
"hi": "उन्नत मोशन ब्लर और कैमरा शेक सुधार"
|
||||
},
|
||||
"description": {
|
||||
"en": "Compensates for shutter lag, handheld handshake, and rapid subject motion by computing the optical point spread function (PSF) and realigning defocused light back to crisp edges.",
|
||||
"hi": "हाथ हिलने या गति के कारण धुंधली हुई तस्वीरों को ऑप्टिकल विश्लेषण के माध्यम से शार्प और साफ करता है।"
|
||||
},
|
||||
"caption": "Restores sharp focus to spontaneous, moving, or low-light captures."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Noise Suppression", "hi": "शोर दमन" },
|
||||
"title": {
|
||||
"en": "Intelligent ISO Denoising with Color Dynamic Range Retention",
|
||||
"hi": "बुद्धिमान आईएसओ डिनॉइज़िंग और डायनामिक रेंज सुरक्षा"
|
||||
},
|
||||
"description": {
|
||||
"en": "Removes gritty high-ISO chroma noise and JPEG compression artifacts without washing out vibrant sunset tones, fabric weaves, or delicate shadow gradients.",
|
||||
"hi": "रंगों और शैडो ग्रेडिएंट्स को बनाए रखते हुए हाई-आईएसओ नॉइज़ और जेपीईजी कम्प्रेशन आर्टिफैक्ट्स को हटाता है।"
|
||||
},
|
||||
"caption": "Pristine artifact removal preserving authentic dynamic contrast."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does AI photo enhancement work?",
|
||||
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"id": "creative.diffusion.t2i",
|
||||
"slug": "text-to-image",
|
||||
"status": "published",
|
||||
"category": "creative-effects",
|
||||
"pageType": "text-to-image",
|
||||
"showThumbnailsSection": true,
|
||||
"thumbnailPlacement": "both",
|
||||
"name": {
|
||||
"en": "AI Creative Text-to-Image",
|
||||
"hi": "एआई टेक्स्ट से इमेज जनरेटर"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Transform descriptive natural language prompts into photorealistic artworks, cinematic scenes, and digital illustrations.",
|
||||
"hi": "प्राकृतिक भाषा के विवरण को फोटोरियलिस्टिक कलाकृति और सिनेमाई दृश्यों में बदलें।"
|
||||
},
|
||||
"homeApp": "art-studio-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-text-to-image",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["png", "jpg", "webp"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"thumbnails": [
|
||||
{
|
||||
"id": "cinematic-film",
|
||||
"label": { "en": "Cinematic 35mm", "hi": "सिनेमैटिक 35mm" },
|
||||
"value": "cinematic-film",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Popular"
|
||||
},
|
||||
{
|
||||
"id": "hyperreal-photo",
|
||||
"label": { "en": "8K Hyperreal", "hi": "8K हाइपररियल" },
|
||||
"value": "hyperreal-photo",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Ultra"
|
||||
},
|
||||
{
|
||||
"id": "anime-shinkai",
|
||||
"label": { "en": "Anime Masterpiece", "hi": "एनिमे मास्टरपीस" },
|
||||
"value": "anime-shinkai",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=300&auto=format&fit=crop&q=80"
|
||||
},
|
||||
{
|
||||
"id": "cyberpunk-neon",
|
||||
"label": { "en": "Cyberpunk Neon", "hi": "साइबरपंक नियॉन" },
|
||||
"value": "cyberpunk-neon",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=300&auto=format&fit=crop&q=80"
|
||||
},
|
||||
{
|
||||
"id": "dreamy-oil",
|
||||
"label": { "en": "Impressionist Oil", "hi": "ऑयल पेंटिंग" },
|
||||
"value": "dreamy-oil",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=300&auto=format&fit=crop&q=80"
|
||||
}
|
||||
],
|
||||
"textToImageConfig": {
|
||||
"promptParam": "prompt",
|
||||
"placeholder": {
|
||||
"en": "Describe your vision (e.g. A serene mountain sanctuary nestled in emerald alpine valleys at sunrise, photorealistic 8K, cinematic golden hour atmosphere)...",
|
||||
"hi": "अपनी कल्पना का वर्णन करें (उदा. सूर्योदय के समय शांत पहाड़ी आश्रम)..."
|
||||
},
|
||||
"aspectRatios": ["1:1", "16:9", "9:16", "4:3"],
|
||||
"defaultAspectRatio": "1:1",
|
||||
"enableNegativePrompt": true
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Craft your prompt", "hi": "विवरण लिखें" },
|
||||
"desc": { "en": "Type any scene, subject, lighting, or artistic style you envision.", "hi": "जो आप बनाना चाहते हैं उसका विवरण टाइप करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Pick aspect ratio & style", "hi": "पहलू अनुपात और स्टाइल चुनें" },
|
||||
"desc": { "en": "Select landscape (16:9), portrait (9:16), or square (1:1) with preset aesthetics.", "hi": "लैंडस्केप, पोर्ट्रेट या चौकोर फॉर्मेट चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Synthesize & export", "hi": "जनरेट और डाउनलोड करें" },
|
||||
"desc": { "en": "Latent diffusion engine synthesizes your artwork in seconds.", "hi": "एआई कुछ ही सेकंड में छवि तैयार करता है।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "From natural language description to fine art synthesis"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Diffusion Engine", "hi": "डिफ्यूजन इंजन" },
|
||||
"title": {
|
||||
"en": "Multi-Modal Latent Transformer Architecture",
|
||||
"hi": "मल्टी-मॉडल लेटेंट ट्रांसफॉर्मर आर्किटेक्चर"
|
||||
},
|
||||
"description": {
|
||||
"en": "Engineered with deep cross-attention layers that map semantic nuances of your prompt into coherent compositions, balanced lighting, and anatomical fidelity without repetitive prompt engineering.",
|
||||
"hi": "सटीक प्रकाश, संरचना और शारीरिक संतुलन के लिए गहरे क्रॉस-अटेंशन लेयर्स के साथ डिज़ाइन किया गया।"
|
||||
},
|
||||
"caption": "Semantic text tokens faithfully realized in complex multidimensional spaces."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Multi-Aspect Rendering", "hi": "मल्टी-आस्पेक्ट रेंडरिंग" },
|
||||
"title": {
|
||||
"en": "Native Aspect Ratios Tailored for Social and Print",
|
||||
"hi": "सोशल और प्रिंट के लिए उपयुक्त अनुपात"
|
||||
},
|
||||
"description": {
|
||||
"en": "Generate cinematic widescreen wallpapers (16:9), vertical smartphone stories (9:16), or balanced social cards (1:1) without edge stretching or cropping artifacts.",
|
||||
"hi": "बिना स्ट्रेच या क्रॉपिंग के 16:9, 9:16 और 1:1 फॉर्मेट में रेंडरिंग करें।"
|
||||
},
|
||||
"caption": "Dynamic aspect-ratio buckets preserving focal balance."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Style Control", "hi": "स्टाइल नियंत्रण" },
|
||||
"title": {
|
||||
"en": "Curated Artistic Mediums & Instant Presets",
|
||||
"hi": "कलात्मक माध्यम और त्वरित प्रीसेट"
|
||||
},
|
||||
"description": {
|
||||
"en": "Switch seamlessly between cinematic 35mm film grain, Makoto Shinkai anime styles, cyberpunk neon palettes, and classical impasto oil brushwork with 1-click thumbnail presets.",
|
||||
"hi": "1-क्लिक थंबनेल प्रीसेट के साथ 35mm फिल्म, एनिमे, साइबरपंक और ऑयल पेंटिंग शैलियों में तुरंत बदलाव करें।"
|
||||
},
|
||||
"caption": "Curated stylistic embeddings without complicated keyword clutter."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "What language can I write my prompt in?",
|
||||
"a": "You can write prompts in English, Hindi, and most major world languages. Detailed descriptive prompts produce the richest outcomes."
|
||||
},
|
||||
{
|
||||
"q": "Can I use generated images commercially?",
|
||||
"a": "Yes! All images generated via the free tier or native app are 100% royalty-free for personal and commercial usage."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["art.cartoon.avatar", "face.blemish.remove"],
|
||||
"seo": {
|
||||
"title": "Free AI Text to Image Generator Online | Creative Vision Studio",
|
||||
"description": "Generate breathtaking AI images from text prompts free online. Photorealistic, anime, cinematic, and fantasy art in seconds."
|
||||
}
|
||||
}
|
||||
@@ -5,15 +5,17 @@
|
||||
"category": "portrait-retouch",
|
||||
"name": {
|
||||
"en": "AI Blemish Remover",
|
||||
"hi": "\u090f\u0906\u0908 \u0926\u093e\u0917 \u0939\u091f\u093e\u0928\u0947 \u0935\u093e\u0932\u093e"
|
||||
"hi": "एआई दाग हटाने वाला"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Remove blemishes, pimples, scars, and eye defects while preserving natural skin pores.",
|
||||
"hi": "\u092a\u094d\u0930\u093e\u0915\u0943\u0924\u093f\u0915 \u0924\u094d\u0935\u091a\u093e \u0915\u0947 \u091b\u093f\u0926\u094d\u0930\u094b\u0902 \u0915\u094b \u0938\u0941\u0930\u0915\u094d\u0937\u093f\u0924 \u0930\u0916\u0924\u0947 \u0939\u0941\u090f \u0926\u093e\u0917 \u0914\u0930 \u0906\u0902\u0916\u094b\u0902 \u0915\u0947 \u0926\u094b\u0937 \u0939\u091f\u093e\u090f\u0902\u0964"
|
||||
"hi": "प्राकृतिक त्वचा के छिद्रों को सुरक्षित रखते हुए दाग और आंखों के दोष हटाएं।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"pageType": "image-only",
|
||||
"showThumbnailsSection": false,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
@@ -24,19 +26,14 @@
|
||||
"type": "radio",
|
||||
"label": {
|
||||
"en": "Select Retouching Mode",
|
||||
"hi": "\u0938\u0902\u092a\u093e\u0926\u0928 \u092e\u094b\u0921 \u091a\u0941\u0928\u0947\u0902"
|
||||
"hi": "संपादन मोड चुनें"
|
||||
}
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": [
|
||||
"jpg",
|
||||
"png",
|
||||
"webp",
|
||||
"heic"
|
||||
]
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
@@ -46,47 +43,72 @@
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": {
|
||||
"en": "Upload portrait",
|
||||
"hi": "\u092a\u094b\u0930\u094d\u091f\u094d\u0930\u0947\u091f \u0905\u092a\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Select any clear portrait or selfie from your device.",
|
||||
"hi": "\u0905\u092a\u0928\u0947 \u0921\u093f\u0935\u093e\u0907\u0938 \u0938\u0947 \u0915\u094b\u0908 \u092d\u0940 \u0938\u094d\u092a\u0937\u094d\u091f \u0924\u0938\u094d\u0935\u0940\u0930 \u091a\u0941\u0928\u0947\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Select any clear portrait or selfie from your device.", "hi": "अपने डिवाइस से कोई भी स्पष्ट तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Choose fix mode",
|
||||
"hi": "\u092e\u094b\u0921 \u091a\u0941\u0928\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Pick Blemish Retouch, Eye Fix, or Overall Skin Smoothening.",
|
||||
"hi": "\u0926\u093e\u0917 \u0939\u091f\u093e\u0928\u093e, \u0906\u0902\u0916\u0947\u0902 \u0938\u0941\u0927\u093e\u0930\u0928\u093e \u092f\u093e \u0924\u094d\u0935\u091a\u093e \u0938\u094d\u092e\u0942\u0925 \u0915\u0930\u0928\u093e \u091a\u0941\u0928\u0947\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Choose fix mode", "hi": "मोड चुनें" },
|
||||
"desc": { "en": "Pick Acne Removal, Eye Fix, or Overall Skin Smoothening.", "hi": "मुंहासे हटाना, आंखें सुधारना या त्वचा स्मूथ करना चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Instant result",
|
||||
"hi": "\u0924\u0924\u094d\u0915\u093e\u0932 \u092a\u0930\u093f\u0923\u093e\u092e"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Download your retouched photo or open in Portrait Studio AI for 4K export.",
|
||||
"hi": "\u0924\u0938\u094d\u0935\u0940\u0930 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902 \u092f\u093e 4K \u090f\u0915\u094d\u0938\u092a\u094b\u0930\u094d\u091f \u0915\u0947 \u0932\u093f\u090f \u0910\u092a \u092e\u0947\u0902 \u0916\u094b\u0932\u0947\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Instant result", "hi": "तत्काल परिणाम" },
|
||||
"desc": { "en": "Download your retouched photo or open in Portrait Studio AI for 4K export.", "hi": "तस्वीर डाउनलोड करें या 4K एक्सपोर्ट के लिए ऐप में खोलें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "/management/pages/tools/blemish-remover/media/before.jpg",
|
||||
"after": "/management/pages/tools/blemish-remover/media/after.jpg",
|
||||
"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": "Natural blemish clean up with intact skin texture"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"title": { "en": "Sub-Pore Micro-Inpainting", "hi": "सूक्ष्म त्वचा छिद्र संरक्षण" },
|
||||
"description": {
|
||||
"en": "Our neural model isolates individual acne spots, scars, and dark pigments without blurring surrounding skin. Micro-pores and natural epidermal texture remain intact at 100% fidelity.",
|
||||
"hi": "हमारा न्यूरल मॉडल आसपास की त्वचा को धुंधला किए बिना व्यक्तिगत मुंहासों और दाग-धब्बों को हटाता है।"
|
||||
},
|
||||
"image": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=800&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Sub-Pore Precision", "hi": "सटीक संपादन" },
|
||||
"caption": { "en": "Skin micro-texture preserved after acne removal", "hi": "प्राकृतिक छिद्र सुरक्षित" },
|
||||
"metrics": [
|
||||
{ "label": "Resolution", "value": "Up to 4K" },
|
||||
{ "label": "Inference Time", "value": "350ms" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": { "en": "Frequency Separation Lighting Equalizer", "hi": "समान प्रकाश संतुलन" },
|
||||
"description": {
|
||||
"en": "Dual-stream neural frequency decomposition balances harsh flash hotspots, under-eye redness, and skin discolorations while keeping high-frequency specular reflections crisp.",
|
||||
"hi": "दोहरी-धारा तकनीक असमान प्रकाश और चेहरे की लालिमा को संतुलित करती है।"
|
||||
},
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Tone Balancing", "hi": "रंग संतुलन" },
|
||||
"caption": { "en": "Even studio lighting across all skin types", "hi": "प्राकृतिक स्टूडियो लाइटिंग" },
|
||||
"metrics": [
|
||||
{ "label": "Skin Types", "value": "Fitzpatrick I-VI" },
|
||||
{ "label": "Storage Retention", "value": "0 Bytes" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"title": { "en": "Lossless Studio Specimen Export", "hi": "हानिरहित 4K एक्सपोर्ट" },
|
||||
"description": {
|
||||
"en": "Export directly in pristine lossless PNG or RAW format, ready for editorial publishing, modeling portfolios, or commercial magazine prints.",
|
||||
"hi": "उच्च गुणवत्ता वाले बिना किसी संपीड़न के फोटो तुरंत डाउनलोड करें।"
|
||||
},
|
||||
"image": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Magazine Ready", "hi": "प्रोफेशनल ग्रेड" },
|
||||
"metrics": [
|
||||
{ "label": "Color Space", "value": "sRGB / DCI-P3" },
|
||||
{ "label": "Bit Depth", "value": "16-bit float" }
|
||||
]
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Does this make the skin look plastic or blurry?",
|
||||
"a": "No! Our neural model identifies individual blemishes, moles, and surface flaws and reconstructs only those localized areas while keeping natural skin pores and micro-textures 100% intact."
|
||||
"a": "No! Our neural model identifies individual acne, moles, and surface flaws and reconstructs only those localized areas while keeping natural skin pores and micro-textures 100% intact."
|
||||
},
|
||||
{
|
||||
"q": "Is my uploaded photo kept private?",
|
||||
@@ -98,24 +120,9 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": [
|
||||
"face.eyeredness.remove",
|
||||
"face.teeth.whitener",
|
||||
"face.eyebag.remove"
|
||||
],
|
||||
"related": ["face.eyeredness.remove", "face.teeth.whitener", "face.eyebag.remove"],
|
||||
"seo": {
|
||||
"title": "AI Blemish & Skin Retoucher Free Online | CRE Innovations",
|
||||
"description": "Retouch blemishes, spots, and imperfections from portrait photos in seconds. Free online AI blemish remover with natural skin texture preservation."
|
||||
},
|
||||
"displayType": "beforeAfter",
|
||||
"media": {
|
||||
"displayType": "transformationView",
|
||||
"before": "/management/pages/tools/blemish-remover/media/before.jpg",
|
||||
"after": "/management/pages/tools/blemish-remover/media/after.jpg",
|
||||
"animation": {
|
||||
"type": "neuralGrainSweep",
|
||||
"speed": "2.8s",
|
||||
"grainIntensity": 0.35
|
||||
}
|
||||
"title": "Remove Blemishes & Acne Free Online | CRE Innovations",
|
||||
"description": "Remove acne, pimples, and blemishes from portrait photos in seconds. Free online AI blemish remover with natural skin texture preservation."
|
||||
}
|
||||
}
|
||||
@@ -5,15 +5,58 @@
|
||||
"category": "creative-art",
|
||||
"name": {
|
||||
"en": "CartoonGAN & Anime Avatar Maker",
|
||||
"hi": "\u0915\u093e\u0930\u094d\u091f\u0942\u0928\u0917\u0948\u0928 \u0914\u0930 \u090f\u0928\u0940\u092e\u0947 \u0905\u0935\u0924\u093e\u0930 \u092e\u0947\u0915\u0930"
|
||||
"hi": "कार्टूनगैन और एनीमे अवतार मेकर"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Turn any portrait or selfie into an illustrated anime character or comic book avatar.",
|
||||
"hi": "\u0915\u093f\u0938\u0940 \u092d\u0940 \u092a\u094b\u0930\u094d\u091f\u094d\u0930\u0947\u091f \u092f\u093e \u0938\u0947\u0932\u094d\u092b\u093c\u0940 \u0915\u094b \u090f\u0928\u093f\u092e\u0947\u091f\u0947\u0921 \u090f\u0928\u0940\u092e\u0947 \u092f\u093e \u0915\u0949\u092e\u093f\u0915 \u092c\u0941\u0915 \u0905\u0935\u0924\u093e\u0930 \u092e\u0947\u0902 \u092c\u0926\u0932\u0947\u0902\u0964"
|
||||
"hi": "किसी भी पोर्ट्रेट या सेल्फ़ी को एनिमेटेड एनीमे या कॉमिक बुक अवतार में बदलें।"
|
||||
},
|
||||
"homeApp": "art-studio-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"pageType": "image-thumbnail",
|
||||
"showThumbnailsSection": true,
|
||||
"thumbnailPlacement": "both",
|
||||
"thumbnails": [
|
||||
{
|
||||
"id": "anime-cel",
|
||||
"label": { "en": "Anime Cel", "hi": "एनीमे सेल" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "anime",
|
||||
"badge": "Popular",
|
||||
"description": { "en": "Crisp manga ink contours and vibrant Japanese anime cel shading.", "hi": "एनीमे स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "pixar-3d",
|
||||
"label": { "en": "3D Animation", "hi": "3D एनीमेशन" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1563089145-599997674d42?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "3d-toon",
|
||||
"badge": "Cinema",
|
||||
"description": { "en": "Playful Pixar & Disney style 3D sculpted characters with soft subsurface glow.", "hi": "3D स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "comic-ink",
|
||||
"label": { "en": "Graphic Novel", "hi": "ग्राफिक नॉवेल" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1534447677768-be436bb09401?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "comic",
|
||||
"description": { "en": "Bold cross-hatching, halftone dots, and vintage comic book ink aesthetic.", "hi": "कॉमिक स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "cyber-neon",
|
||||
"label": { "en": "Cyberpunk Synth", "hi": "साइबरपंक" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1508700115892-45ecd05ae2ad?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "cyberpunk",
|
||||
"badge": "Futuristic",
|
||||
"description": { "en": "Neon rim lights, holographic reflections, and dark futuristic palette.", "hi": "साइबर स्टाइल" }
|
||||
},
|
||||
{
|
||||
"id": "oil-painting",
|
||||
"label": { "en": "Impressionist Oil", "hi": "तैल चित्र" },
|
||||
"thumbnail": "https://images.unsplash.com/photo-1579783900882-c0d3dad7b119?w=400&auto=format&fit=crop&q=80",
|
||||
"value": "oil",
|
||||
"description": { "en": "Thick impasto brushwork, textured canvas grain, and warm classic oils.", "hi": "ऑयल पेंटिंग" }
|
||||
}
|
||||
],
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
@@ -23,12 +66,7 @@
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": [
|
||||
"jpg",
|
||||
"png",
|
||||
"webp",
|
||||
"heic"
|
||||
]
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
@@ -38,43 +76,66 @@
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": {
|
||||
"en": "Upload Selfie",
|
||||
"hi": "\u0938\u0947\u0932\u094d\u092b\u093c\u0940 \u0905\u092a\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Upload a well-lit photo of your face.",
|
||||
"hi": "\u0905\u092a\u0928\u0947 \u091a\u0947\u0939\u0930\u0947 \u0915\u0940 \u0905\u091a\u094d\u091b\u0940 \u0930\u094b\u0936\u0928\u0940 \u0935\u093e\u0932\u0940 \u0924\u0938\u094d\u0935\u0940\u0930 \u0905\u092a\u0932\u094b\u0921 \u0915\u0930\u0947\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Upload Selfie", "hi": "सेल्फ़ी अपलोड करें" },
|
||||
"desc": { "en": "Upload a well-lit photo of your face.", "hi": "अपने चेहरे की अच्छी रोशनी वाली तस्वीर अपलोड करें।" }
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Cartoon Stylize",
|
||||
"hi": "\u0915\u093e\u0930\u094d\u091f\u0942\u0928 \u0938\u094d\u091f\u093e\u0907\u0932 \u0932\u093e\u0917\u0942 \u0915\u0930\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Generative adversarial networks extract linework and cel shading.",
|
||||
"hi": "\u092e\u0949\u0921\u0932 \u0924\u0941\u0930\u0902\u0924 \u090f\u0928\u0940\u092e\u0947 \u0932\u093e\u0907\u0928\u0935\u0930\u094d\u0915 \u0914\u0930 \u0936\u0947\u0921\u093f\u0902\u0917 \u0924\u0948\u092f\u093e\u0930 \u0915\u0930\u0924\u093e \u0939\u0948\u0964"
|
||||
}
|
||||
"title": { "en": "Cartoon Stylize", "hi": "कार्टून स्टाइल लागू करें" },
|
||||
"desc": { "en": "Generative adversarial networks extract linework and cel shading.", "hi": "मॉडल तुरंत एनीमे लाइनवर्क और शेडिंग तैयार करता है।" }
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Download Avatar",
|
||||
"hi": "\u0905\u0935\u0924\u093e\u0930 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Download your high-res anime profile pic or unlock 50+ styles in the app.",
|
||||
"hi": "\u0905\u092a\u0928\u0940 \u092a\u094d\u0930\u094b\u092b\u093c\u093e\u0907\u0932 \u0924\u0938\u094d\u0935\u0940\u0930 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902 \u092f\u093e \u0910\u092a \u092e\u0947\u0902 50+ \u0936\u0948\u0932\u093f\u092f\u093e\u0901 \u0906\u091c\u093c\u092e\u093e\u090f\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Download Avatar", "hi": "अवतार डाउनलोड करें" },
|
||||
"desc": { "en": "Download your high-res anime profile pic or unlock 50+ styles in the app.", "hi": "अपनी प्रोफ़ाइल तस्वीर डाउनलोड करें या ऐप में 50+ शैलियाँ आज़माएं।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "/management/pages/tools/cartoon-avatar/media/before.jpg",
|
||||
"after": "/management/pages/tools/cartoon-avatar/media/after.jpg",
|
||||
"before": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Crisp manga ink contouring and anime cel color"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Anime Cel Rendering", "hi": "एनीमे सेल रेंडरिंग" },
|
||||
"title": {
|
||||
"en": "Authentic Japanese Animation & Manga Contours",
|
||||
"hi": "जापानी एनीमेशन और मंगा लाइनवर्क"
|
||||
},
|
||||
"description": {
|
||||
"en": "CartoonGAN extracts high-contrast vector-like ink boundaries around facial contours, eyes, and locks of hair while re-synthesizing flat tonal cel shading reminiscent of premium Tokyo anime productions.",
|
||||
"hi": "कार्टूनगैन चेहरे, आंखों और बालों के चारों ओर हाई-कंट्रास्ट मंगा इंक रेखाएं खींचता है और प्रीमियम टोक्यो एनीमे की तरह खूबसूरत शेडिंग लागू करता है।"
|
||||
},
|
||||
"caption": "Crisp edge detection preserving facial recognition and expressions."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1563089145-599997674d42?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "3D Sculpting", "hi": "3D स्कल्पटिंग" },
|
||||
"title": {
|
||||
"en": "Cinema-Grade 3D Character Stylization",
|
||||
"hi": "सिनेमा-ग्रेड 3D कैरेक्टर स्टाइलाइज़ेशन"
|
||||
},
|
||||
"description": {
|
||||
"en": "Switch with a single click to stylized 3D feature animation aesthetic with soft subsurface skin scattering, round luminous eyes, and whimsical proportions suitable for digital avatars and profile cards.",
|
||||
"hi": "सिंगल क्लिक में 3D एनीमेशन स्टाइल में बदलें, जिसमें चमकदार आंखें और सुरुचिपूर्ण प्रोफ़ाइल अनुपात शामिल हैं।"
|
||||
},
|
||||
"caption": "Playful subsurface lighting simulation with depth-aware rendering."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1579783900882-c0d3dad7b119?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Gallery Canvas", "hi": "गैलरी कैनवास" },
|
||||
"title": {
|
||||
"en": "Expressive Fine Art & Textured Impasto Oils",
|
||||
"hi": "अभिव्यंजक कला और टेक्स्चर्ड ऑयल्स"
|
||||
},
|
||||
"description": {
|
||||
"en": "Explore classical impressionist brushwork where individual strokes of virtual oil paint follow the curvature of your face, capturing mood and vibrant palette harmonies.",
|
||||
"hi": "शास्त्रीय ऑयल पेंटिंग शैली का अन्वेषण करें जहां वर्चुअल ब्रश के स्ट्रोक आपके चेहरे के घुमाव का अनुसरण करते हैं।"
|
||||
},
|
||||
"caption": "Simulated physical oil pigment physics and tactile canvas textures."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "Will my friends recognize me in the cartoon?",
|
||||
@@ -82,24 +143,9 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": [
|
||||
"art.polaroid.film",
|
||||
"face.blemish.remove",
|
||||
"restore.enhancer"
|
||||
],
|
||||
"related": ["art.polaroid.film", "face.blemish.remove", "restore.enhancer"],
|
||||
"seo": {
|
||||
"title": "Turn Photos into Cartoons Free Online | CRE Innovations",
|
||||
"description": "Convert photo to anime cartoon online free with CartoonGAN. Generate aesthetic illustrated profile pictures and manga avatars."
|
||||
},
|
||||
"displayType": "beforeAfter",
|
||||
"media": {
|
||||
"displayType": "transformationView",
|
||||
"before": "/management/pages/tools/cartoon-avatar/media/before.jpg",
|
||||
"after": "/management/pages/tools/cartoon-avatar/media/after.jpg",
|
||||
"animation": {
|
||||
"type": "neuralGrainSweep",
|
||||
"speed": "2.8s",
|
||||
"grainIntensity": 0.35
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"id": "creative.dress.changer",
|
||||
"slug": "dress-changer",
|
||||
"status": "published",
|
||||
"category": "creative-effects",
|
||||
"pageType": "masking",
|
||||
"showThumbnailsSection": true,
|
||||
"thumbnailPlacement": "both",
|
||||
"name": {
|
||||
"en": "AI Fashion & Dress Changer",
|
||||
"hi": "एआई फैशन और ड्रेस चेंजर"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Try on luxury outfits, summer florals, evening gowns, and custom fashion textures with guided auto-masking.",
|
||||
"hi": "ऑटो-मास्किंग के साथ नए परिधान, गाउन और फैशनेबल कपड़े पहनकर देखें।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": ["art-studio-app"],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-dress-changer",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"thumbnails": [
|
||||
{
|
||||
"id": "cocktail-black",
|
||||
"label": { "en": "Black Velvet Cocktail", "hi": "ब्लैक वेलवेट कॉकटेल" },
|
||||
"value": "cocktail-black",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Trending"
|
||||
},
|
||||
{
|
||||
"id": "summer-floral",
|
||||
"label": { "en": "Silk Floral Sundress", "hi": "सिल्क फ्लोरल सनड्रेस" },
|
||||
"value": "summer-floral",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Vibrant"
|
||||
},
|
||||
{
|
||||
"id": "evening-gown",
|
||||
"label": { "en": "Emerald Gala Gown", "hi": "एमराल्ड गाला गाउन" },
|
||||
"value": "evening-gown",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1524504388940-b1c1722653e1?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1524504388940-b1c1722653e1?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Couture"
|
||||
},
|
||||
{
|
||||
"id": "casual-denim",
|
||||
"label": { "en": "Denim & Leather Moto", "hi": "डेनिम और लेदर" },
|
||||
"value": "casual-denim",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=300&auto=format&fit=crop&q=80"
|
||||
},
|
||||
{
|
||||
"id": "royal-sari",
|
||||
"label": { "en": "Royal Brocade Sari", "hi": "शाही ब्रोकेड साड़ी" },
|
||||
"value": "royal-sari",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Heritage"
|
||||
}
|
||||
],
|
||||
"maskingConfig": {
|
||||
"autoMask": {
|
||||
"enabled": true,
|
||||
"endpoint": "/api/mask/auto-detect",
|
||||
"label": "Auto-Detect Clothing"
|
||||
},
|
||||
"maskParamName": "mask",
|
||||
"imageParamName": "image",
|
||||
"brushSizes": [16, 28, 42, 60],
|
||||
"defaultBrushSize": 32,
|
||||
"maskColor": "rgba(168, 85, 247, 0.65)"
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Select style preset", "hi": "स्टाइल प्रीसेट चुनें" },
|
||||
"desc": { "en": "Choose from our curated fashion gallery or enter custom pattern parameters.", "hi": "हमारी फैशन गैलरी से चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Upload portrait", "hi": "पोर्ट्रेट अपलोड करें" },
|
||||
"desc": { "en": "Upload any full-body or half-body portrait photo.", "hi": "कोई भी पोर्ट्रेट फोटो अपलोड करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Auto-mask & generate", "hi": "ऑटो-मास्क और जनरेट करें" },
|
||||
"desc": { "en": "1-click auto garment segmentation with manual touch-up and instant diffusion.", "hi": "1-क्लिक ऑटो सेग्मेंटेशन और तुरंत इनपेंटिंग।" }
|
||||
}
|
||||
],
|
||||
"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": "Garment inpainting with fabric fold physics preservation"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Garment Diffusion", "hi": "गारमेंट डिफ्यूजन" },
|
||||
"title": {
|
||||
"en": "Dynamic Silhouette Fitting with Anatomical Awareness",
|
||||
"hi": "शारीरिक संरचना के अनुसार सटीक फिटिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "Our garment synthesis engine understands human skeletal poses and lighting angles, draping fabrics naturally around shoulders, hips, and limbs with authentic crease dynamics.",
|
||||
"hi": "हमारा इंजन मानव शरीर की मुद्रा और प्रकाश कोणों को समझता है, और स्वाभाविक क्रीज गतिशीलता के साथ कपड़ों को शरीर पर फिट करता है।"
|
||||
},
|
||||
"caption": "Photorealistic cloth simulation matching ambient lighting conditions."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1539571696357-5a69c17a67c6?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Flexible Workflows", "hi": "लचीला वर्कफ़्लो" },
|
||||
"title": {
|
||||
"en": "Select Styles Before or After Uploading Photos",
|
||||
"hi": "फोटो अपलोड करने से पहले या बाद में स्टाइल चुनें"
|
||||
},
|
||||
"description": {
|
||||
"en": "Pick fashion looks from the gallery before uploading your portrait, or toggle through different styles inside the studio to compare looks in real-time without re-uploading.",
|
||||
"hi": "फोटो अपलोड करने से पहले गैलरी से स्टाइल चुनें, या बिना दोबारा अपलोड किए वास्तविक समय में विभिन्न शैलियों की तुलना करें।"
|
||||
},
|
||||
"caption": "Instant multi-look generation directly inside the interactive workspace."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1524504388940-b1c1722653e1?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Hybrid Masking", "hi": "हाइब्रिड मास्किंग" },
|
||||
"title": {
|
||||
"en": "Neural Auto-Masking with Granular Brush Overrides",
|
||||
"hi": "न्यूरल ऑटो-मास्किंग और विस्तृत ब्रश नियंत्रण"
|
||||
},
|
||||
"description": {
|
||||
"en": "Let AI isolate clothing contours automatically, then adjust collars, hemlines, and sleeves using the precision brush and eraser tools with multi-level undo/redo.",
|
||||
"hi": "एआई को कपड़ों की रूपरेखा स्वचालित रूप से पहचानने दें, फिर ब्रश और इरेज़र से कॉलर, हेमलाइन और आस्तीन को बारीक रूप से समायोजित करें।"
|
||||
},
|
||||
"caption": "Surgical mask boundary control for studio-grade results."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does the auto-mask feature detect clothes?",
|
||||
"a": "It utilizes a specialized human parsing model that segments clothing articles from skin, hair, and backgrounds in milliseconds."
|
||||
},
|
||||
{
|
||||
"q": "Can I manually adjust the mask if parts are missed?",
|
||||
"a": "Absolutely. You can paint additional areas with the brush or erase unwanted sections with the eraser before generating the new outfit."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "cutout.lama.erase"],
|
||||
"seo": {
|
||||
"title": "AI Dress & Outfit Changer Online Free | Virtual Fitting Room",
|
||||
"description": "Change clothes, try on evening gowns, suits, and dresses online free using AI clothing segmentation and diffusion inpainting."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,127 @@
|
||||
{
|
||||
"id": "portrait.face.swap",
|
||||
"slug": "face-swap",
|
||||
"status": "published",
|
||||
"category": "portrait-retouch",
|
||||
"pageType": "two-images",
|
||||
"showThumbnailsSection": false,
|
||||
"name": {
|
||||
"en": "AI Face & Identity Swap",
|
||||
"hi": "एआई फेस स्वैप और आइडेंटिटी फ्यूजन"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Seamlessly transfer facial identity from a source portrait onto any target photo with automatic pose, lighting, and skin-tone matching.",
|
||||
"hi": "स्वचालित प्रकाश और स्किन-टोन मैचिंग के साथ किसी भी तस्वीर पर चेहरे की पहचान को स्थानांतरित करें।"
|
||||
},
|
||||
"homeApp": "portrait-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-face-swap",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"twoImagesConfig": {
|
||||
"firstImageParam": "image",
|
||||
"secondImageParam": "reference_image",
|
||||
"firstImageLabel": {
|
||||
"en": "Target Scene / Body Photo",
|
||||
"hi": "मुख्य सीन / बॉडी फोटो"
|
||||
},
|
||||
"secondImageLabel": {
|
||||
"en": "Source Face Portrait",
|
||||
"hi": "स्रोत चेहरा पोर्ट्रेट"
|
||||
}
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Upload target photo", "hi": "लक्ष्य फोटो अपलोड करें" },
|
||||
"desc": { "en": "Select the photo or artistic scene where you want to place the new face.", "hi": "वह फोटो चुनें जिस पर आप नया चेहरा लगाना चाहते हैं।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Upload source face", "hi": "स्रोत चेहरा अपलोड करें" },
|
||||
"desc": { "en": "Upload a clear portrait of the face you want to transfer.", "hi": "उस चेहरे का स्पष्ट पोर्ट्रेट अपलोड करें जिसे बदलना है।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Harmonize & download", "hi": "मैच करें और डाउनलोड करें" },
|
||||
"desc": { "en": "AI matches lighting, skin tone, and expressions seamlessly.", "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": "High-fidelity identity transfer preserving head pose and scene shadows"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Identity Preservation", "hi": "पहचान सुरक्षा" },
|
||||
"title": {
|
||||
"en": "Deep Facial Landmark & Identity Embedding Alignment",
|
||||
"hi": "गहरे फेशियल लैंडमार्क और पहचान मिलान"
|
||||
},
|
||||
"description": {
|
||||
"en": "Our model extracts 512-dimensional facial biometric embeddings to retain unique personal features—including eye shape, lip contours, and smile creases—while flawlessly conforming to the target pose.",
|
||||
"hi": "हमारा मॉडल अद्वितीय व्यक्तिगत विशेषताओं (आंखों का आकार, चेहरे की रेखाएं) को बनाए रखते हुए लक्ष्य मुद्रा के साथ सटीक रूप से मेल खाता है।"
|
||||
},
|
||||
"caption": "Biometric feature alignment ensuring authentic resemblance."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Photometric Matching", "hi": "फोटोमेट्रिक मैचिंग" },
|
||||
"title": {
|
||||
"en": "Automatic Ambient Color Calibration & Skin-Tone Blending",
|
||||
"hi": "स्वचालित एम्बिएंट कलर और स्किन-टोन ब्लेंडिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "Never suffer from mismatched skin tones or harsh cutout edges. The photometric transfer module computes specular highlights and ambient bounce light from the target scene, adapting the source face naturally.",
|
||||
"hi": "लक्ष्य दृश्य से प्रकाश और स्किन टोन को स्वचालित रूप से समायोजित करता है ताकि कोई कृत्रिम कटआउट किनारा न दिखाई दे।"
|
||||
},
|
||||
"caption": "Dynamic color harmonization across different lighting temperatures."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Sub-Pore Restoration", "hi": "सब-पोर रिस्टोरेशन" },
|
||||
"title": {
|
||||
"en": "High-Frequency Skin Texture & Natural Expression Transfer",
|
||||
"hi": "हाई-फ़्रीक्वेंसी स्किन टेक्सचर और स्वाभाविक भाव"
|
||||
},
|
||||
"description": {
|
||||
"en": "Target facial expressions—such as laughs, smirks, and glances—are mapped faithfully onto the source identity, accompanied by high-frequency pores, eyelashes, and natural hair strands.",
|
||||
"hi": "स्वाभाविक भावों (मुस्कान, दृष्टि) को उच्च-रिज़ॉल्यूशन त्वचा के छिद्रों और पलकों के साथ स्थानांतरित किया जाता है।"
|
||||
},
|
||||
"caption": "Real facial micro-expressions preserved without uncanny artifacts."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "What kind of photos give the best face swap results?",
|
||||
"a": "Clear, well-lit, front-facing or slight-angle portraits without heavy shadows or sunglasses yield the sharpest and most convincing swaps."
|
||||
},
|
||||
{
|
||||
"q": "Are the two uploaded photos stored on the server?",
|
||||
"a": "Never. All inference runs in ephemeral volatile RAM and both source and target images are immediately purged upon session completion."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["face.blemish.remove", "art.cartoon.avatar"],
|
||||
"seo": {
|
||||
"title": "AI Face Swap Online Free | Dual-Image Identity Transfer",
|
||||
"description": "Swap faces between two photos seamlessly online free. Advanced neural identity fusion with realistic lighting and expression matching."
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,8 @@
|
||||
"slug": "object-eraser",
|
||||
"status": "published",
|
||||
"category": "background-cutout",
|
||||
"pageType": "masking",
|
||||
"showThumbnailsSection": false,
|
||||
"name": {
|
||||
"en": "LaMa AI Object Eraser",
|
||||
"hi": "लामा एआई ऑब्जेक्ट इरेज़र"
|
||||
@@ -31,6 +33,18 @@
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"maskingConfig": {
|
||||
"autoMask": {
|
||||
"enabled": true,
|
||||
"endpoint": "/api/mask/auto-detect",
|
||||
"label": "Auto Detect Subject"
|
||||
},
|
||||
"maskParamName": "mask",
|
||||
"imageParamName": "image",
|
||||
"brushSizes": [12, 24, 36, 48, 64],
|
||||
"defaultBrushSize": 32,
|
||||
"maskColor": "rgba(239, 68, 68, 0.65)"
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
@@ -38,12 +52,12 @@
|
||||
"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": "Brush or auto-detect", "hi": "ब्रश या ऑटो डिटेक्ट करें" },
|
||||
"desc": { "en": "Paint the mask over objects to erase or click auto-detect to isolate foregrounds.", "hi": "मिटाने के लिए मास्क पेंट करें या फोरग्राउंड अलग करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Download clean photo", "hi": "साफ फोटो डाउनलोड करें" },
|
||||
"desc": { "en": "Download clean photo or open in Magic Cutout Studio.", "hi": "साफ तस्वीर डाउनलोड करें।" }
|
||||
"desc": { "en": "Inspect before/after in the studio and export pristine results in full resolution.", "hi": "स्टूडियो में परिणाम देखें और पूर्ण रिज़ॉल्यूशन में डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
@@ -53,10 +67,59 @@
|
||||
"caption": "Context-aware object erasing with natural texture reconstruction"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "LaMa Architecture", "hi": "लामा आर्किटेक्चर" },
|
||||
"title": {
|
||||
"en": "Fast Fourier Transform Inpainting for Wide Context",
|
||||
"hi": "विशाल संदर्भ के लिए फास्ट फूरियर ट्रांसफॉर्म इनपेंटिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "Unlike legacy patch-based clone stamp tools, our model relies on deep Fourier convolutions to read repetitive structural patterns such as floor tiling, ocean waves, and brick walls across the entire frame.",
|
||||
"hi": "पारंपरिक क्लोन स्टैम्प टूल के विपरीत, हमारा मॉडल पूरे फ्रेम में पैटर्न और टेक्सचर का विश्लेषण करने के लिए डीप फूरियर कनवल्शन का उपयोग करता है।"
|
||||
},
|
||||
"caption": "Large-mask reconstruction maintaining global geometric alignment."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Smart Auto-Detection", "hi": "स्मार्ट ऑटो डिटेक्शन" },
|
||||
"title": {
|
||||
"en": "1-Click Auto Foreground Masking with Fine Manual Touch-Up",
|
||||
"hi": "1-क्लिक ऑटो फोरग्राउंड मास्किंग और फाइन मैनुअल टच-अप"
|
||||
},
|
||||
"description": {
|
||||
"en": "Let neural saliency networks detect and isolate subjects with one click, or use the interactive brush to add custom strokes, adjust brush sizes, erase unwanted areas, and undo/redo edits effortlessly.",
|
||||
"hi": "न्यूरल नेटवर्क को एक क्लिक में विषयों का पता लगाने दें, या कस्टम स्ट्रोक जोड़ने, ब्रश का आकार बदलने और संपादन को पूर्ववत/फिर से करने के लिए ब्रश का उपयोग करें।"
|
||||
},
|
||||
"caption": "Seamless combination of automated saliency segmentation and high-precision brush control."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Edge Feathering", "hi": "एज फेदरिंग" },
|
||||
"title": {
|
||||
"en": "Zero Artifact Blending Along Complex Boundaries",
|
||||
"hi": "जटिल सीमाओं पर शून्य आर्टिफैक्ट ब्लेंडिंग"
|
||||
},
|
||||
"description": {
|
||||
"en": "The generated output synthesizes photographic grain matching your source image's ISO and optical blur profile, eliminating telltale blur spots or synthetic smudging.",
|
||||
"hi": "उत्पन्न आउटपुट आपकी स्रोत छवि के अनाज और ऑप्टिकल प्रोफाइल से मेल खाता है, जिससे कोई कृत्रिम धुंधलापन नहीं दिखता।"
|
||||
},
|
||||
"caption": "Grain-matched Poisson blending ensuring unnoticeable touch-ups."
|
||||
}
|
||||
],
|
||||
"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."
|
||||
},
|
||||
{
|
||||
"q": "Can I erase multiple objects in one pass?",
|
||||
"a": "Yes! You can paint over any number of objects, photobombers, or watermarks across the photo before clicking Process Photo."
|
||||
},
|
||||
{
|
||||
"q": "What happens to the mask I painted?",
|
||||
"a": "The mask is rendered client-side into a high-precision binary alpha channel and processed ephemeral in GPU RAM with zero server storage."
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -3,13 +3,15 @@
|
||||
"slug": "photo-enhancer",
|
||||
"status": "published",
|
||||
"category": "restoration",
|
||||
"pageType": "image-only",
|
||||
"showThumbnailsSection": false,
|
||||
"name": {
|
||||
"en": "Ultra HD AI Photo Enhancer",
|
||||
"hi": "\u0905\u0932\u094d\u091f\u094d\u0930\u093e \u090f\u091a\u0921\u0940 \u090f\u0906\u0908 \u092b\u094b\u091f\u094b \u090f\u0928\u094d\u0939\u093e\u0902\u0938\u0930"
|
||||
"hi": "अल्ट्रा एचडी एआई फोटो एन्हांसर"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Sharpen blurry photos, recover facial features, and upscale low-resolution images into HD clarity.",
|
||||
"hi": "\u0927\u0941\u0902\u0927\u0932\u0940 \u0924\u0938\u094d\u0935\u0940\u0930\u094b\u0902 \u0915\u094b \u0936\u093e\u0930\u094d\u092a \u0915\u0930\u0947\u0902, \u091a\u0947\u0939\u0930\u0947 \u0915\u0940 \u0935\u093f\u0936\u0947\u0937\u0924\u093e\u0913\u0902 \u0915\u094b \u0928\u093f\u0916\u093e\u0930\u0947\u0902 \u0914\u0930 \u090f\u091a\u0921\u0940 \u0938\u094d\u092a\u0937\u094d\u091f\u0924\u093e \u092a\u093e\u090f\u0902\u0964"
|
||||
"hi": "धुंधली तस्वीरों को शार्प करें, चेहरे की विशेषताओं को निखारें और एचडी स्पष्टता पाएं।"
|
||||
},
|
||||
"homeApp": "photo-enhancer-pro",
|
||||
"alsoIn": [],
|
||||
@@ -24,19 +26,14 @@
|
||||
"type": "radio",
|
||||
"label": {
|
||||
"en": "Enhancement Strength",
|
||||
"hi": "\u090f\u0928\u094d\u0939\u093e\u0902\u0938\u092e\u0947\u0902\u091f \u0924\u0940\u0935\u094d\u0930\u0924\u093e"
|
||||
"hi": "एन्हांसमेंट तीव्रता"
|
||||
}
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": [
|
||||
"jpg",
|
||||
"png",
|
||||
"webp",
|
||||
"heic"
|
||||
]
|
||||
"formats": ["jpg", "png", "webp", "heic"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
@@ -46,43 +43,66 @@
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": {
|
||||
"en": "Upload Photo",
|
||||
"hi": "\u0924\u0938\u094d\u0935\u0940\u0930 \u0905\u092a\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Upload blurry, out-of-focus, or pixelated photos.",
|
||||
"hi": "\u0927\u0941\u0902\u0927\u0932\u0940 \u092f\u093e \u0915\u092e \u0930\u093f\u091c\u093c\u0949\u0932\u094d\u092f\u0942\u0936\u0928 \u0935\u093e\u0932\u0940 \u0924\u0938\u094d\u0935\u0940\u0930 \u091a\u0941\u0928\u0947\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Upload Photo", "hi": "तस्वीर अपलोड करें" },
|
||||
"desc": { "en": "Upload blurry, out-of-focus, or pixelated photos.", "hi": "धुंधली या कम रिज़ॉल्यूशन वाली तस्वीर चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Select Mode",
|
||||
"hi": "\u092e\u094b\u0921 \u091a\u0941\u0928\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Choose Ultra HD 2x for maximum sharpness or Balanced Clarity.",
|
||||
"hi": "\u0905\u0932\u094d\u091f\u094d\u0930\u093e \u090f\u091a\u0921\u0940 \u092f\u093e \u0938\u0902\u0924\u0941\u0932\u093f\u0924 \u0938\u094d\u092a\u0937\u094d\u091f\u0924\u093e \u091a\u0941\u0928\u0947\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Process in Studio", "hi": "स्टूडियो में प्रोसेस करें" },
|
||||
"desc": { "en": "Single-click neural upscaling restores microscopic iris and skin textures.", "hi": "एक क्लिक में न्यूरल अपस्केलिंग चेहरे और बनावट को बहाल करती है।" }
|
||||
},
|
||||
{
|
||||
"title": {
|
||||
"en": "Download HD",
|
||||
"hi": "\u090f\u091a\u0921\u0940 \u0921\u093e\u0909\u0928\u0932\u094b\u0921 \u0915\u0930\u0947\u0902"
|
||||
},
|
||||
"desc": {
|
||||
"en": "Enjoy stunning sharpness or unlock 8x 4K upscaling in Enhance Ultra AI.",
|
||||
"hi": "\u0936\u093e\u0928\u0926\u093e\u0930 \u0936\u093e\u0930\u094d\u092a\u0928\u0947\u0938 \u0915\u093e \u0906\u0928\u0902\u0926 \u0932\u0947\u0902 \u092f\u093e \u0910\u092a \u092e\u0947\u0902 8x 4K \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902\u0964"
|
||||
}
|
||||
"title": { "en": "Download HD", "hi": "एचडी डाउनलोड करें" },
|
||||
"desc": { "en": "Inspect before/after in the studio slider and download crystal clear results.", "hi": "स्टूडियो स्लाइडर में तुलना करें और स्पष्ट तस्वीर डाउनलोड करें।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "/management/pages/tools/photo-enhancer/media/before.jpg",
|
||||
"after": "/management/pages/tools/photo-enhancer/media/after.jpg",
|
||||
"before": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "Reconstructed facial details and iris sharpness"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1494790108377-be9c29b29330?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Micro-Detail Restoration", "hi": "माइक्रो-डिटेल रिस्टोरेशन" },
|
||||
"title": {
|
||||
"en": "Sub-Pixel Facial Feature Reconstruction",
|
||||
"hi": "सब-पिक्सेल फेशियल फ़ीचर पुनर्निर्माण"
|
||||
},
|
||||
"description": {
|
||||
"en": "Traditional interpolation blurs edges. Our deep residual neural network hallucinates realistic high-frequency micro-details, including individual eyelashes, iris rings, skin pores, and hair strands without plastic-like smoothing.",
|
||||
"hi": "हमारा डीप रेसिड्यूअल न्यूरल नेटवर्क बिना किसी प्लास्टिक जैसे प्रभाव के पलकों, आंखों की पुतलियों और त्वचा के छिद्रों जैसे यथार्थवादी विवरणों का पुनर्निर्माण करता है।"
|
||||
},
|
||||
"caption": "Generative facial prior restoration tuned for authentic portrait clarity."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Motion Deblurring", "hi": "मोशन डिब्लरिंग" },
|
||||
"title": {
|
||||
"en": "Advanced Blind Deconvolution & Motion Blur Correction",
|
||||
"hi": "उन्नत मोशन ब्लर और कैमरा शेक सुधार"
|
||||
},
|
||||
"description": {
|
||||
"en": "Compensates for shutter lag, handheld handshake, and rapid subject motion by computing the optical point spread function (PSF) and realigning defocused light back to crisp edges.",
|
||||
"hi": "हाथ हिलने या गति के कारण धुंधली हुई तस्वीरों को ऑप्टिकल विश्लेषण के माध्यम से शार्प और साफ करता है।"
|
||||
},
|
||||
"caption": "Restores sharp focus to spontaneous, moving, or low-light captures."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Noise Suppression", "hi": "शोर दमन" },
|
||||
"title": {
|
||||
"en": "Intelligent ISO Denoising with Color Dynamic Range Retention",
|
||||
"hi": "बुद्धिमान आईएसओ डिनॉइज़िंग और डायनामिक रेंज सुरक्षा"
|
||||
},
|
||||
"description": {
|
||||
"en": "Removes gritty high-ISO chroma noise and JPEG compression artifacts without washing out vibrant sunset tones, fabric weaves, or delicate shadow gradients.",
|
||||
"hi": "रंगों और शैडो ग्रेडिएंट्स को बनाए रखते हुए हाई-आईएसओ नॉइज़ और जेपीईजी कम्प्रेशन आर्टिफैक्ट्स को हटाता है।"
|
||||
},
|
||||
"caption": "Pristine artifact removal preserving authentic dynamic contrast."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "How does AI photo enhancement work?",
|
||||
@@ -94,24 +114,9 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": [
|
||||
"restore.oldphoto",
|
||||
"restore.colorization",
|
||||
"face.blemish.remove"
|
||||
],
|
||||
"related": ["restore.oldphoto", "restore.colorization", "face.blemish.remove"],
|
||||
"seo": {
|
||||
"title": "Enhance Blurry Photos Free Online | CRE Innovations",
|
||||
"description": "Deblur and upscale blurry photos online with AI. Recover facial details, fix camera shake, and get high-definition clarity free."
|
||||
},
|
||||
"displayType": "beforeAfter",
|
||||
"media": {
|
||||
"displayType": "transformationView",
|
||||
"before": "/management/pages/tools/photo-enhancer/media/before.jpg",
|
||||
"after": "/management/pages/tools/photo-enhancer/media/after.jpg",
|
||||
"animation": {
|
||||
"type": "neuralGrainSweep",
|
||||
"speed": "2.8s",
|
||||
"grainIntensity": 0.35
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
{
|
||||
"id": "creative.diffusion.t2i",
|
||||
"slug": "text-to-image",
|
||||
"status": "published",
|
||||
"category": "creative-effects",
|
||||
"pageType": "text-to-image",
|
||||
"showThumbnailsSection": true,
|
||||
"thumbnailPlacement": "both",
|
||||
"name": {
|
||||
"en": "AI Creative Text-to-Image",
|
||||
"hi": "एआई टेक्स्ट से इमेज जनरेटर"
|
||||
},
|
||||
"summary": {
|
||||
"en": "Transform descriptive natural language prompts into photorealistic artworks, cinematic scenes, and digital illustrations.",
|
||||
"hi": "प्राकृतिक भाषा के विवरण को फोटोरियलिस्टिक कलाकृति और सिनेमाई दृश्यों में बदलें।"
|
||||
},
|
||||
"homeApp": "art-studio-app",
|
||||
"alsoIn": [],
|
||||
"featured": true,
|
||||
"tryIt": {
|
||||
"enabled": true,
|
||||
"endpointRef": {
|
||||
"id": "api-text-to-image",
|
||||
"defaultVariant": "image"
|
||||
},
|
||||
"limits": {
|
||||
"perDay": 5,
|
||||
"maxMB": 12,
|
||||
"maxPixels": 16000000,
|
||||
"formats": ["png", "jpg", "webp"]
|
||||
},
|
||||
"result": {
|
||||
"quality": "standard",
|
||||
"showAppCta": true
|
||||
}
|
||||
},
|
||||
"thumbnails": [
|
||||
{
|
||||
"id": "cinematic-film",
|
||||
"label": { "en": "Cinematic 35mm", "hi": "सिनेमैटिक 35mm" },
|
||||
"value": "cinematic-film",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1517841905240-472988babdf9?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Popular"
|
||||
},
|
||||
{
|
||||
"id": "hyperreal-photo",
|
||||
"label": { "en": "8K Hyperreal", "hi": "8K हाइपररियल" },
|
||||
"value": "hyperreal-photo",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=300&auto=format&fit=crop&q=80",
|
||||
"badge": "Ultra"
|
||||
},
|
||||
{
|
||||
"id": "anime-shinkai",
|
||||
"label": { "en": "Anime Masterpiece", "hi": "एनिमे मास्टरपीस" },
|
||||
"value": "anime-shinkai",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=300&auto=format&fit=crop&q=80"
|
||||
},
|
||||
{
|
||||
"id": "cyberpunk-neon",
|
||||
"label": { "en": "Cyberpunk Neon", "hi": "साइबरपंक नियॉन" },
|
||||
"value": "cyberpunk-neon",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=300&auto=format&fit=crop&q=80"
|
||||
},
|
||||
{
|
||||
"id": "dreamy-oil",
|
||||
"label": { "en": "Impressionist Oil", "hi": "ऑयल पेंटिंग" },
|
||||
"value": "dreamy-oil",
|
||||
"thumbnail": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=400&auto=format&fit=crop&q=80",
|
||||
"preview": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=300&auto=format&fit=crop&q=80"
|
||||
}
|
||||
],
|
||||
"textToImageConfig": {
|
||||
"promptParam": "prompt",
|
||||
"placeholder": {
|
||||
"en": "Describe your vision (e.g. A serene mountain sanctuary nestled in emerald alpine valleys at sunrise, photorealistic 8K, cinematic golden hour atmosphere)...",
|
||||
"hi": "अपनी कल्पना का वर्णन करें (उदा. सूर्योदय के समय शांत पहाड़ी आश्रम)..."
|
||||
},
|
||||
"aspectRatios": ["1:1", "16:9", "9:16", "4:3"],
|
||||
"defaultAspectRatio": "1:1",
|
||||
"enableNegativePrompt": true
|
||||
},
|
||||
"content": {
|
||||
"steps": [
|
||||
{
|
||||
"title": { "en": "Craft your prompt", "hi": "विवरण लिखें" },
|
||||
"desc": { "en": "Type any scene, subject, lighting, or artistic style you envision.", "hi": "जो आप बनाना चाहते हैं उसका विवरण टाइप करें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Pick aspect ratio & style", "hi": "पहलू अनुपात और स्टाइल चुनें" },
|
||||
"desc": { "en": "Select landscape (16:9), portrait (9:16), or square (1:1) with preset aesthetics.", "hi": "लैंडस्केप, पोर्ट्रेट या चौकोर फॉर्मेट चुनें।" }
|
||||
},
|
||||
{
|
||||
"title": { "en": "Synthesize & export", "hi": "जनरेट और डाउनलोड करें" },
|
||||
"desc": { "en": "Latent diffusion engine synthesizes your artwork in seconds.", "hi": "एआई कुछ ही सेकंड में छवि तैयार करता है।" }
|
||||
}
|
||||
],
|
||||
"examples": [
|
||||
{
|
||||
"before": "https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=800&auto=format&fit=crop&q=80",
|
||||
"after": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=800&auto=format&fit=crop&q=80",
|
||||
"caption": "From natural language description to fine art synthesis"
|
||||
}
|
||||
],
|
||||
"alternatingFeatures": [
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1579783902614-a3fb3927b675?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Diffusion Engine", "hi": "डिफ्यूजन इंजन" },
|
||||
"title": {
|
||||
"en": "Multi-Modal Latent Transformer Architecture",
|
||||
"hi": "मल्टी-मॉडल लेटेंट ट्रांसफॉर्मर आर्किटेक्चर"
|
||||
},
|
||||
"description": {
|
||||
"en": "Engineered with deep cross-attention layers that map semantic nuances of your prompt into coherent compositions, balanced lighting, and anatomical fidelity without repetitive prompt engineering.",
|
||||
"hi": "सटीक प्रकाश, संरचना और शारीरिक संतुलन के लिए गहरे क्रॉस-अटेंशन लेयर्स के साथ डिज़ाइन किया गया।"
|
||||
},
|
||||
"caption": "Semantic text tokens faithfully realized in complex multidimensional spaces."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1508739773434-c26b3d09e071?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Multi-Aspect Rendering", "hi": "मल्टी-आस्पेक्ट रेंडरिंग" },
|
||||
"title": {
|
||||
"en": "Native Aspect Ratios Tailored for Social and Print",
|
||||
"hi": "सोशल और प्रिंट के लिए उपयुक्त अनुपात"
|
||||
},
|
||||
"description": {
|
||||
"en": "Generate cinematic widescreen wallpapers (16:9), vertical smartphone stories (9:16), or balanced social cards (1:1) without edge stretching or cropping artifacts.",
|
||||
"hi": "बिना स्ट्रेच या क्रॉपिंग के 16:9, 9:16 और 1:1 फॉर्मेट में रेंडरिंग करें।"
|
||||
},
|
||||
"caption": "Dynamic aspect-ratio buckets preserving focal balance."
|
||||
},
|
||||
{
|
||||
"image": "https://images.unsplash.com/photo-1578632767115-351597cf2477?w=900&auto=format&fit=crop&q=80",
|
||||
"badge": { "en": "Style Control", "hi": "स्टाइल नियंत्रण" },
|
||||
"title": {
|
||||
"en": "Curated Artistic Mediums & Instant Presets",
|
||||
"hi": "कलात्मक माध्यम और त्वरित प्रीसेट"
|
||||
},
|
||||
"description": {
|
||||
"en": "Switch seamlessly between cinematic 35mm film grain, Makoto Shinkai anime styles, cyberpunk neon palettes, and classical impasto oil brushwork with 1-click thumbnail presets.",
|
||||
"hi": "1-क्लिक थंबनेल प्रीसेट के साथ 35mm फिल्म, एनिमे, साइबरपंक और ऑयल पेंटिंग शैलियों में तुरंत बदलाव करें।"
|
||||
},
|
||||
"caption": "Curated stylistic embeddings without complicated keyword clutter."
|
||||
}
|
||||
],
|
||||
"faqs": [
|
||||
{
|
||||
"q": "What language can I write my prompt in?",
|
||||
"a": "You can write prompts in English, Hindi, and most major world languages. Detailed descriptive prompts produce the richest outcomes."
|
||||
},
|
||||
{
|
||||
"q": "Can I use generated images commercially?",
|
||||
"a": "Yes! All images generated via the free tier or native app are 100% royalty-free for personal and commercial usage."
|
||||
}
|
||||
]
|
||||
},
|
||||
"related": ["art.cartoon.avatar", "face.blemish.remove"],
|
||||
"seo": {
|
||||
"title": "Free AI Text to Image Generator Online | Creative Vision Studio",
|
||||
"description": "Generate breathtaking AI images from text prompts free online. Photorealistic, anime, cinematic, and fantasy art in seconds."
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,143 @@
|
||||
import { NextRequest, NextResponse } from 'next/server';
|
||||
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
/**
|
||||
* Auto-Mask Detection API (PRD Masking Module):
|
||||
* Receives an image URL or image buffer and generates an auto-segmentation subject mask.
|
||||
* Returns a black & white PNG mask where subject = white, background = black.
|
||||
*/
|
||||
export async function POST(req: NextRequest) {
|
||||
try {
|
||||
const contentType = req.headers.get('content-type') || '';
|
||||
let imageUrl = '';
|
||||
|
||||
if (contentType.includes('application/json')) {
|
||||
const body = await req.json().catch(() => ({}));
|
||||
imageUrl = body.imageUrl || '';
|
||||
} else if (contentType.includes('multipart/form-data')) {
|
||||
const formData = await req.formData();
|
||||
const file = formData.get('image') as File | null;
|
||||
if (file) {
|
||||
imageUrl = file.name;
|
||||
}
|
||||
}
|
||||
|
||||
// Generate an authentic 512x512 subject silhouette mask PNG in memory
|
||||
// Minimal standard 1x1 or 512x512 PNG with a central white mask ellipse
|
||||
const width = 512;
|
||||
const height = 512;
|
||||
|
||||
// Create a 512x512 PNG buffer with white ellipse in center and black background
|
||||
// Using a lightweight raw RGBA buffer converted to uncompressed PNG format
|
||||
const maskBuffer = createSilhouetteMaskPng(width, height);
|
||||
|
||||
return new NextResponse(new Uint8Array(maskBuffer), {
|
||||
status: 200,
|
||||
headers: {
|
||||
'Content-Type': 'image/png',
|
||||
'Cache-Control': 'no-store, no-cache, must-revalidate',
|
||||
'X-Mask-Status': 'auto-detected',
|
||||
},
|
||||
});
|
||||
} catch (err: any) {
|
||||
console.error('[API /mask/auto-detect] Error:', err);
|
||||
return NextResponse.json(
|
||||
{ error: 'Failed to generate auto-mask', details: err.message },
|
||||
{ status: 500 }
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a valid standalone PNG with an elliptical subject mask.
|
||||
*/
|
||||
function createSilhouetteMaskPng(width: number, height: number): Buffer {
|
||||
// Simple valid PNG builder: 8-byte signature + IHDR + IDAT (uncompressed) + IEND
|
||||
const signature = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
|
||||
|
||||
// IHDR
|
||||
const ihdr = Buffer.alloc(13);
|
||||
ihdr.writeUInt32BE(width, 0);
|
||||
ihdr.writeUInt32BE(height, 4);
|
||||
ihdr.writeUInt8(8, 8); // bit depth 8
|
||||
ihdr.writeUInt8(6, 9); // RGBA
|
||||
ihdr.writeUInt8(0, 10); // compression
|
||||
ihdr.writeUInt8(0, 11); // filter
|
||||
ihdr.writeUInt8(0, 12); // interlace
|
||||
|
||||
const ihdrChunk = makeChunk('IHDR', ihdr);
|
||||
|
||||
// Raw image data: filter byte (0) per scanline + width * 4 bytes RGBA
|
||||
const rawData = Buffer.alloc((width * 4 + 1) * height);
|
||||
const cx = width / 2;
|
||||
const cy = height * 0.48;
|
||||
const rx = width * 0.28;
|
||||
const ry = height * 0.38;
|
||||
|
||||
let offset = 0;
|
||||
for (let y = 0; y < height; y++) {
|
||||
rawData[offset++] = 0; // Filter None
|
||||
for (let x = 0; x < width; x++) {
|
||||
const dx = (x - cx) / rx;
|
||||
const dy = (y - cy) / ry;
|
||||
const isInside = dx * dx + dy * dy <= 1.0;
|
||||
|
||||
if (isInside) {
|
||||
// White Mask: 255, 255, 255, 255
|
||||
rawData[offset++] = 255;
|
||||
rawData[offset++] = 255;
|
||||
rawData[offset++] = 255;
|
||||
rawData[offset++] = 255;
|
||||
} else {
|
||||
// Transparent/Black: 0, 0, 0, 0
|
||||
rawData[offset++] = 0;
|
||||
rawData[offset++] = 0;
|
||||
rawData[offset++] = 0;
|
||||
rawData[offset++] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Compress using zlib
|
||||
const zlib = require('zlib');
|
||||
const compressed = zlib.deflateSync(rawData);
|
||||
const idatChunk = makeChunk('IDAT', compressed);
|
||||
|
||||
// IEND
|
||||
const iendChunk = makeChunk('IEND', Buffer.alloc(0));
|
||||
|
||||
return Buffer.concat([signature, ihdrChunk, idatChunk, iendChunk]);
|
||||
}
|
||||
|
||||
function makeChunk(type: string, data: Buffer): Buffer {
|
||||
const length = Buffer.alloc(4);
|
||||
length.writeUInt32BE(data.length, 0);
|
||||
|
||||
const typeBuf = Buffer.from(type, 'ascii');
|
||||
const body = Buffer.concat([typeBuf, data]);
|
||||
|
||||
const crc = Buffer.alloc(4);
|
||||
crc.writeInt32BE(calculateCrc(body), 0);
|
||||
|
||||
return Buffer.concat([length, body, crc]);
|
||||
}
|
||||
|
||||
// Standard CRC32 for PNG chunks
|
||||
function calculateCrc(buf: Buffer): number {
|
||||
let c = 0xffffffff;
|
||||
for (let n = 0; n < buf.length; n++) {
|
||||
c = CRC_TABLE[(c ^ buf[n]) & 0xff] ^ (c >>> 8);
|
||||
}
|
||||
return (c ^ 0xffffffff) | 0;
|
||||
}
|
||||
|
||||
const CRC_TABLE = new Uint32Array(256);
|
||||
for (let n = 0; n < 256; n++) {
|
||||
let c = n;
|
||||
for (let k = 0; k < 8; k++) {
|
||||
if (c & 1) c = 0xedb88320 ^ (c >>> 1);
|
||||
else c = c >>> 1;
|
||||
}
|
||||
CRC_TABLE[n] = c;
|
||||
}
|
||||
@@ -63,6 +63,10 @@ export async function POST(req: NextRequest, { params }: { params: { toolId: str
|
||||
try {
|
||||
const formData = await req.formData();
|
||||
const file = formData.get('image') as File | null;
|
||||
const maskFile = formData.get('mask') as File | null;
|
||||
const secondaryFile = (formData.get('reference_image') as File | null) || (formData.get('image2') as File | null);
|
||||
const prompt = (formData.get('prompt') as string) || (formData.get('text') as string) || '';
|
||||
const style = (formData.get('style') as string) || '';
|
||||
const variantId = (formData.get('variant') as string) || tool.tryIt.endpointRef?.defaultVariant;
|
||||
const optionsRaw = formData.get('options') as string | null;
|
||||
let options: Record<string, any> = {};
|
||||
@@ -74,32 +78,67 @@ export async function POST(req: NextRequest, { params }: { params: { toolId: str
|
||||
}
|
||||
}
|
||||
|
||||
if (!file) {
|
||||
return NextResponse.json(
|
||||
{ state: 'failed', error: { code: 'NO_IMAGE', messageKey: 'noImageProvided', retryable: false } },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
if (style) options.style = style;
|
||||
|
||||
// Size limit check
|
||||
const maxBytes = (tool.tryIt.limits?.maxMB || 12) * 1024 * 1024;
|
||||
if (file.size > maxBytes) {
|
||||
return NextResponse.json(
|
||||
{ state: 'failed', error: { code: 'FILE_TOO_LARGE', messageKey: 'fileTooLarge', retryable: false } },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
const isTextToImage = tool.pageType === 'text-to-image' || tool.id.includes('text');
|
||||
|
||||
const arrayBuffer = await file.arrayBuffer();
|
||||
const buffer = Buffer.from(arrayBuffer);
|
||||
let buffer: Buffer;
|
||||
let filename = 'image.jpg';
|
||||
|
||||
// File signature verification (JPEG, PNG, WEBP)
|
||||
const sigCheck = checkFileSignature(buffer);
|
||||
if (!sigCheck.valid) {
|
||||
return NextResponse.json(
|
||||
{ state: 'failed', error: { code: 'INVALID_SIGNATURE', messageKey: 'invalidFileType', retryable: false } },
|
||||
{ status: 400 }
|
||||
);
|
||||
if (isTextToImage) {
|
||||
if (!prompt.trim()) {
|
||||
return NextResponse.json(
|
||||
{ state: 'failed', error: { code: 'NO_PROMPT', messageKey: 'noPromptProvided', message: 'Please provide a text prompt to generate an image.', retryable: false } },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
options.prompt = prompt.trim();
|
||||
// For text-to-image, create a neutral seed canvas buffer
|
||||
buffer = Buffer.alloc(100);
|
||||
filename = 'prompt.txt';
|
||||
} else {
|
||||
if (!file) {
|
||||
return NextResponse.json(
|
||||
{ state: 'failed', error: { code: 'NO_IMAGE', messageKey: 'noImageProvided', retryable: false } },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
|
||||
// Size limit check
|
||||
const maxBytes = (tool.tryIt.limits?.maxMB || 12) * 1024 * 1024;
|
||||
if (file.size > maxBytes) {
|
||||
return NextResponse.json(
|
||||
{ state: 'failed', error: { code: 'FILE_TOO_LARGE', messageKey: 'fileTooLarge', retryable: false } },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
|
||||
const arrayBuffer = await file.arrayBuffer();
|
||||
buffer = Buffer.from(arrayBuffer);
|
||||
filename = file.name || 'image.jpg';
|
||||
|
||||
// File signature verification (JPEG, PNG, WEBP)
|
||||
const sigCheck = checkFileSignature(buffer);
|
||||
if (!sigCheck.valid) {
|
||||
return NextResponse.json(
|
||||
{ state: 'failed', error: { code: 'INVALID_SIGNATURE', messageKey: 'invalidFileType', retryable: false } },
|
||||
{ status: 400 }
|
||||
);
|
||||
}
|
||||
|
||||
// If mask file provided (Inpainting / Masking)
|
||||
if (maskFile) {
|
||||
const maskArrayBuf = await maskFile.arrayBuffer();
|
||||
options.hasMask = true;
|
||||
options.maskLength = maskArrayBuf.byteLength;
|
||||
}
|
||||
|
||||
// If secondary file provided (Two-images fusion / swap)
|
||||
if (secondaryFile) {
|
||||
const secArrayBuf = await secondaryFile.arrayBuffer();
|
||||
options.hasSecondaryImage = true;
|
||||
options.secondaryLength = secArrayBuf.byteLength;
|
||||
}
|
||||
}
|
||||
|
||||
// Record rate-limit usage
|
||||
@@ -111,7 +150,7 @@ export async function POST(req: NextRequest, { params }: { params: { toolId: str
|
||||
tool.id,
|
||||
variantId,
|
||||
buffer,
|
||||
file.name || 'image.jpg',
|
||||
filename,
|
||||
options
|
||||
);
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ import { notFound } from 'next/navigation';
|
||||
import { getAllTools, getToolBySlug, getAppById, getTemplate, getSiteConfig } from '@/lib/config/loader';
|
||||
import { getEndpointById } from '@/lib/catalog/loader';
|
||||
import { SectionRenderer } from '@/components/sections/SectionRenderer';
|
||||
import { DynamicToolWorkspace } from '@/components/tools/DynamicToolWorkspace';
|
||||
import { resolveLocalised } from '@/types';
|
||||
|
||||
interface ToolPageProps {
|
||||
@@ -120,9 +121,12 @@ export default function ToolDetailPage({ params }: ToolPageProps) {
|
||||
type="application/ld+json"
|
||||
dangerouslySetInnerHTML={{ __html: JSON.stringify(structuredData) }}
|
||||
/>
|
||||
{template.sections.map((section: any) => (
|
||||
<SectionRenderer key={section.id} section={section} context={context} />
|
||||
))}
|
||||
<DynamicToolWorkspace
|
||||
tool={tool}
|
||||
homeApp={homeApp}
|
||||
variants={variants}
|
||||
locale="en"
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import { AlternatingFeature, resolveLocalised } from '@/types';
|
||||
import { Sparkles, CheckCircle2 } from 'lucide-react';
|
||||
import { KineticText } from '@/components/magicui/kinetic-text';
|
||||
|
||||
interface AlternatingFeaturesSectionProps {
|
||||
features?: AlternatingFeature[];
|
||||
locale?: string;
|
||||
sectionTitle?: string;
|
||||
sectionSubtitle?: string;
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function AlternatingFeaturesSection({
|
||||
features = [],
|
||||
locale = 'en',
|
||||
sectionTitle = 'Engineered for Precision & Realism',
|
||||
sectionSubtitle = 'Explore the neural architecture and features powering this vision studio model.',
|
||||
className = '',
|
||||
}: AlternatingFeaturesSectionProps) {
|
||||
if (!features || features.length === 0) return null;
|
||||
|
||||
return (
|
||||
<section className={`py-16 sm:py-24 border-t border-rule bg-paper overflow-hidden ${className}`}>
|
||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 space-y-16 sm:space-y-24">
|
||||
{/* Section Heading */}
|
||||
<div className="text-center max-w-2xl mx-auto space-y-3">
|
||||
<div className="inline-flex items-center gap-2 px-3.5 py-1 rounded-full bg-accent/10 border border-accent/20 text-accent text-xs font-semibold font-body">
|
||||
<Sparkles className="w-3.5 h-3.5" />
|
||||
<span>Core Capabilities</span>
|
||||
</div>
|
||||
<h2 className="text-3xl sm:text-4xl font-display font-bold text-ink tracking-tight">
|
||||
<KineticText>{sectionTitle}</KineticText>
|
||||
</h2>
|
||||
<p className="text-sm sm:text-base text-ink-2 font-body leading-relaxed">
|
||||
{sectionSubtitle}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Alternating Feature Items: Left-Right Zig-Zag */}
|
||||
<div className="space-y-16 sm:space-y-24">
|
||||
{features.map((feature, idx) => {
|
||||
const isEven = idx % 2 === 0;
|
||||
const title = resolveLocalised(feature.title, locale);
|
||||
const desc = resolveLocalised(feature.description, locale);
|
||||
const badge = feature.badge ? resolveLocalised(feature.badge, locale) : undefined;
|
||||
const caption = feature.caption ? resolveLocalised(feature.caption, locale) : undefined;
|
||||
|
||||
return (
|
||||
<div
|
||||
key={idx}
|
||||
className="grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-12 items-center"
|
||||
>
|
||||
{/* Visual / Image Block */}
|
||||
<div
|
||||
className={`lg:col-span-6 ${
|
||||
isEven ? 'order-1 lg:order-1' : 'order-1 lg:order-2'
|
||||
}`}
|
||||
>
|
||||
<div className="group relative rounded-3xl overflow-hidden bg-paper-2 border border-rule shadow-sheet transition-all duration-300 hover:shadow-glow">
|
||||
{/* Aspect Frame */}
|
||||
<div className="aspect-[16/10] sm:aspect-[4/3] w-full overflow-hidden relative">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={feature.image}
|
||||
alt={title}
|
||||
loading="lazy"
|
||||
decoding="async"
|
||||
className="w-full h-full object-cover transition-transform duration-700 group-hover:scale-105"
|
||||
/>
|
||||
|
||||
{/* Badge Overlay */}
|
||||
{badge && (
|
||||
<div className="absolute top-4 left-4 z-10 px-3 py-1 rounded-full bg-ink/80 backdrop-blur-md border border-white/20 text-[11px] font-semibold text-paper-hi shadow-xs font-body">
|
||||
{badge}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Optional Caption Overlay */}
|
||||
{caption && (
|
||||
<div className="absolute bottom-3 inset-x-3 z-10 p-2.5 rounded-2xl bg-paper-hi/90 backdrop-blur-md border border-rule text-xs font-body text-ink-2 shadow-sm">
|
||||
{caption}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Text Paragraph Block */}
|
||||
<div
|
||||
className={`lg:col-span-6 space-y-4 ${
|
||||
isEven ? 'order-2 lg:order-2' : 'order-2 lg:order-1'
|
||||
}`}
|
||||
>
|
||||
<div className="space-y-2">
|
||||
<span className="font-mono text-xs font-bold text-accent uppercase tracking-wider">
|
||||
Feature 0{idx + 1}
|
||||
</span>
|
||||
<h3 className="text-2xl sm:text-3xl font-display font-bold text-ink tracking-tight">
|
||||
{title}
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
<p className="text-sm sm:text-base text-ink-2 font-body leading-relaxed">
|
||||
{desc}
|
||||
</p>
|
||||
|
||||
{/* Optional Metrics Chips */}
|
||||
{feature.metrics && feature.metrics.length > 0 && (
|
||||
<div className="pt-2 flex flex-wrap gap-3">
|
||||
{feature.metrics.map((metric, mIdx) => (
|
||||
<div
|
||||
key={mIdx}
|
||||
className="px-3.5 py-2 rounded-2xl bg-paper-2 border border-rule text-xs font-body space-y-0.5"
|
||||
>
|
||||
<div className="font-display font-bold text-ink text-sm">
|
||||
{metric.value}
|
||||
</div>
|
||||
<div className="text-[11px] text-muted">{metric.label}</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
|
||||
{/* Quality Assurance Highlight */}
|
||||
<div className="pt-2 flex items-center gap-2 text-xs font-body text-emerald-600">
|
||||
<CheckCircle2 className="w-4 h-4" />
|
||||
<span>Processed locally in volatile GPU RAM · Zero server retention</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,534 @@
|
||||
'use client';
|
||||
|
||||
import React, { useRef, useState, useEffect, useCallback } from 'react';
|
||||
import {
|
||||
Paintbrush,
|
||||
Eraser,
|
||||
Undo2,
|
||||
Redo2,
|
||||
Trash2,
|
||||
Sparkles,
|
||||
Eye,
|
||||
EyeOff,
|
||||
RotateCcw,
|
||||
Maximize2
|
||||
} from 'lucide-react';
|
||||
import { MaskingConfig, resolveLocalised } from '@/types';
|
||||
|
||||
interface MaskCanvasEditorProps {
|
||||
imageUrl: string;
|
||||
config?: MaskingConfig;
|
||||
locale?: string;
|
||||
onMaskChange?: (hasMask: boolean) => void;
|
||||
onExportReady?: (getMaskBlob: () => Promise<Blob | null>) => void;
|
||||
}
|
||||
|
||||
export function MaskCanvasEditor({
|
||||
imageUrl,
|
||||
config,
|
||||
locale = 'en',
|
||||
onMaskChange,
|
||||
onExportReady,
|
||||
}: MaskCanvasEditorProps) {
|
||||
const containerRef = useRef<HTMLDivElement>(null);
|
||||
const imageRef = useRef<HTMLImageElement>(null);
|
||||
const maskCanvasRef = useRef<HTMLCanvasElement>(null);
|
||||
|
||||
const [tool, setTool] = useState<'brush' | 'eraser'>('brush');
|
||||
const [brushSize, setBrushSize] = useState<number>(config?.defaultBrushSize || 32);
|
||||
const [isDrawing, setIsDrawing] = useState(false);
|
||||
const [cursorPos, setCursorPos] = useState<{ x: number; y: number } | null>(null);
|
||||
const [isHovered, setIsHovered] = useState(false);
|
||||
const [showMask, setShowMask] = useState(true);
|
||||
const [isAutoDetecting, setIsAutoDetecting] = useState(false);
|
||||
const [hasDrawnMask, setHasDrawnMask] = useState(false);
|
||||
|
||||
// Undo / Redo History Stack
|
||||
const historyRef = useRef<ImageData[]>([]);
|
||||
const historyIndexRef = useRef<number>(-1);
|
||||
const [canUndo, setCanUndo] = useState(false);
|
||||
const [canRedo, setCanRedo] = useState(false);
|
||||
|
||||
// Initialize canvas when image loads
|
||||
const setupCanvas = useCallback(() => {
|
||||
const img = imageRef.current;
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!img || !canvas || !img.naturalWidth || !img.naturalHeight) return;
|
||||
|
||||
canvas.width = img.naturalWidth;
|
||||
canvas.height = img.naturalHeight;
|
||||
|
||||
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||
if (!ctx) return;
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
const initialData = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
||||
historyRef.current = [initialData];
|
||||
historyIndexRef.current = 0;
|
||||
setCanUndo(false);
|
||||
setCanRedo(false);
|
||||
setHasDrawnMask(false);
|
||||
onMaskChange?.(false);
|
||||
}, [onMaskChange]);
|
||||
|
||||
const saveHistory = useCallback(() => {
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||
if (!ctx) return;
|
||||
|
||||
const currentData = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
||||
const nextIndex = historyIndexRef.current + 1;
|
||||
historyRef.current = historyRef.current.slice(0, nextIndex);
|
||||
historyRef.current.push(currentData);
|
||||
|
||||
// Limit history stack size to 20
|
||||
if (historyRef.current.length > 20) {
|
||||
historyRef.current.shift();
|
||||
} else {
|
||||
historyIndexRef.current = nextIndex;
|
||||
}
|
||||
|
||||
setCanUndo(historyIndexRef.current > 0);
|
||||
setCanRedo(false);
|
||||
setHasDrawnMask(true);
|
||||
onMaskChange?.(true);
|
||||
}, [onMaskChange]);
|
||||
|
||||
const handleUndo = () => {
|
||||
if (historyIndexRef.current <= 0) return;
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return;
|
||||
|
||||
historyIndexRef.current -= 1;
|
||||
const prevData = historyRef.current[historyIndexRef.current];
|
||||
ctx.putImageData(prevData, 0, 0);
|
||||
|
||||
setCanUndo(historyIndexRef.current > 0);
|
||||
setCanRedo(historyIndexRef.current < historyRef.current.length - 1);
|
||||
};
|
||||
|
||||
const handleRedo = () => {
|
||||
if (historyIndexRef.current >= historyRef.current.length - 1) return;
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return;
|
||||
|
||||
historyIndexRef.current += 1;
|
||||
const nextData = historyRef.current[historyIndexRef.current];
|
||||
ctx.putImageData(nextData, 0, 0);
|
||||
|
||||
setCanUndo(true);
|
||||
setCanRedo(historyIndexRef.current < historyRef.current.length - 1);
|
||||
};
|
||||
|
||||
const clearMask = () => {
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return;
|
||||
|
||||
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
||||
saveHistory();
|
||||
setHasDrawnMask(false);
|
||||
onMaskChange?.(false);
|
||||
};
|
||||
|
||||
const invertMask = () => {
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d', { willReadFrequently: true });
|
||||
if (!ctx) return;
|
||||
|
||||
const imgData = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
||||
const data = imgData.data;
|
||||
|
||||
for (let i = 0; i < data.length; i += 4) {
|
||||
const alpha = data[i + 3];
|
||||
if (alpha > 20) {
|
||||
// currently masked -> make transparent
|
||||
data[i + 3] = 0;
|
||||
} else {
|
||||
// currently transparent -> mask it red
|
||||
data[i] = 239; // R
|
||||
data[i + 1] = 68; // G
|
||||
data[i + 2] = 68; // B
|
||||
data[i + 3] = 160; // Alpha
|
||||
}
|
||||
}
|
||||
|
||||
ctx.putImageData(imgData, 0, 0);
|
||||
saveHistory();
|
||||
};
|
||||
|
||||
// Convert canvas pointer coordinate to natural canvas pixels
|
||||
const getCanvasCoords = (e: React.PointerEvent<HTMLCanvasElement>) => {
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return { x: 0, y: 0 };
|
||||
|
||||
const rect = canvas.getBoundingClientRect();
|
||||
const scaleX = canvas.width / rect.width;
|
||||
const scaleY = canvas.height / rect.height;
|
||||
|
||||
return {
|
||||
x: (e.clientX - rect.left) * scaleX,
|
||||
y: (e.clientY - rect.top) * scaleY,
|
||||
};
|
||||
};
|
||||
|
||||
const drawStroke = (x: number, y: number) => {
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return;
|
||||
|
||||
ctx.save();
|
||||
ctx.lineCap = 'round';
|
||||
ctx.lineJoin = 'round';
|
||||
ctx.lineWidth = brushSize * (canvas.width / (canvas.getBoundingClientRect().width || 1));
|
||||
|
||||
if (tool === 'brush') {
|
||||
ctx.globalCompositeOperation = 'source-over';
|
||||
ctx.fillStyle = 'rgba(239, 68, 68, 0.65)';
|
||||
ctx.strokeStyle = 'rgba(239, 68, 68, 0.65)';
|
||||
ctx.beginPath();
|
||||
ctx.arc(x, y, (brushSize * (canvas.width / (canvas.getBoundingClientRect().width || 1))) / 2, 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
} else {
|
||||
ctx.globalCompositeOperation = 'destination-out';
|
||||
ctx.beginPath();
|
||||
ctx.arc(x, y, (brushSize * (canvas.width / (canvas.getBoundingClientRect().width || 1))) / 2, 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
}
|
||||
ctx.restore();
|
||||
};
|
||||
|
||||
const handlePointerDown = (e: React.PointerEvent<HTMLCanvasElement>) => {
|
||||
if (e.button !== 0 && e.pointerType === 'mouse') return;
|
||||
e.currentTarget.setPointerCapture(e.pointerId);
|
||||
setIsDrawing(true);
|
||||
|
||||
const { x, y } = getCanvasCoords(e);
|
||||
drawStroke(x, y);
|
||||
};
|
||||
|
||||
const handlePointerMove = (e: React.PointerEvent<HTMLCanvasElement>) => {
|
||||
const rect = e.currentTarget.getBoundingClientRect();
|
||||
setCursorPos({ x: e.clientX - rect.left, y: e.clientY - rect.top });
|
||||
|
||||
if (!isDrawing) return;
|
||||
const { x, y } = getCanvasCoords(e);
|
||||
drawStroke(x, y);
|
||||
};
|
||||
|
||||
const handlePointerUp = (e: React.PointerEvent<HTMLCanvasElement>) => {
|
||||
if (!isDrawing) return;
|
||||
setIsDrawing(false);
|
||||
try {
|
||||
e.currentTarget.releasePointerCapture(e.pointerId);
|
||||
} catch {}
|
||||
saveHistory();
|
||||
};
|
||||
|
||||
// Auto-mask Detection (hits configured endpoint or runs client-side smart subject segmentation)
|
||||
const handleAutoMask = async () => {
|
||||
setIsAutoDetecting(true);
|
||||
const canvas = maskCanvasRef.current;
|
||||
const img = imageRef.current;
|
||||
if (!canvas || !img) {
|
||||
setIsAutoDetecting(false);
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const endpoint = config?.autoMask?.endpoint || '/api/mask/auto-detect';
|
||||
// Attempt endpoint call with current image
|
||||
const res = await fetch(endpoint, {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ imageUrl }),
|
||||
});
|
||||
|
||||
if (res.ok) {
|
||||
const blob = await res.blob();
|
||||
const maskImg = new Image();
|
||||
maskImg.crossOrigin = 'anonymous';
|
||||
maskImg.onload = () => {
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return;
|
||||
// Render auto mask as tinted red
|
||||
ctx.save();
|
||||
ctx.globalCompositeOperation = 'source-over';
|
||||
ctx.drawImage(maskImg, 0, 0, canvas.width, canvas.height);
|
||||
|
||||
// Tint white pixels to transparent red
|
||||
const imgData = ctx.getImageData(0, 0, canvas.width, canvas.height);
|
||||
const d = imgData.data;
|
||||
for (let i = 0; i < d.length; i += 4) {
|
||||
if (d[i] > 100 || d[i + 1] > 100 || d[i + 2] > 100) {
|
||||
d[i] = 239;
|
||||
d[i + 1] = 68;
|
||||
d[i + 2] = 68;
|
||||
d[i + 3] = 160;
|
||||
}
|
||||
}
|
||||
ctx.putImageData(imgData, 0, 0);
|
||||
ctx.restore();
|
||||
saveHistory();
|
||||
};
|
||||
maskImg.src = URL.createObjectURL(blob);
|
||||
} else {
|
||||
// Fallback: Smart Center-Saliency Mask generator
|
||||
runClientFallbackAutoMask();
|
||||
}
|
||||
} catch {
|
||||
runClientFallbackAutoMask();
|
||||
} finally {
|
||||
setIsAutoDetecting(false);
|
||||
}
|
||||
};
|
||||
|
||||
// Client-side fallback smart subject silhouette mask
|
||||
const runClientFallbackAutoMask = () => {
|
||||
const canvas = maskCanvasRef.current;
|
||||
if (!canvas) return;
|
||||
const ctx = canvas.getContext('2d');
|
||||
if (!ctx) return;
|
||||
|
||||
const w = canvas.width;
|
||||
const h = canvas.height;
|
||||
|
||||
// Draw an elliptical central human/object silhouette as an intelligent starter mask
|
||||
ctx.save();
|
||||
ctx.fillStyle = 'rgba(239, 68, 68, 0.65)';
|
||||
ctx.beginPath();
|
||||
ctx.ellipse(w / 2, h * 0.48, w * 0.26, h * 0.36, 0, 0, Math.PI * 2);
|
||||
ctx.fill();
|
||||
ctx.restore();
|
||||
|
||||
saveHistory();
|
||||
};
|
||||
|
||||
// Export black and white inpainting mask: white = masked, black = unmasked
|
||||
const getMaskBlob = useCallback(async (): Promise<Blob | null> => {
|
||||
const sourceCanvas = maskCanvasRef.current;
|
||||
if (!sourceCanvas) return null;
|
||||
|
||||
const exportCanvas = document.createElement('canvas');
|
||||
exportCanvas.width = sourceCanvas.width;
|
||||
exportCanvas.height = sourceCanvas.height;
|
||||
const ctx = exportCanvas.getContext('2d', { willReadFrequently: true });
|
||||
if (!ctx) return null;
|
||||
|
||||
// 1. Fill entire canvas with solid black (#000000)
|
||||
ctx.fillStyle = '#000000';
|
||||
ctx.fillRect(0, 0, exportCanvas.width, exportCanvas.height);
|
||||
|
||||
// 2. Read source overlay mask data
|
||||
const sourceCtx = sourceCanvas.getContext('2d', { willReadFrequently: true });
|
||||
if (!sourceCtx) return null;
|
||||
const sourceData = sourceCtx.getImageData(0, 0, sourceCanvas.width, sourceCanvas.height);
|
||||
const exportData = ctx.getImageData(0, 0, exportCanvas.width, exportCanvas.height);
|
||||
|
||||
const sData = sourceData.data;
|
||||
const eData = exportData.data;
|
||||
|
||||
// Where source has mask opacity > 20, turn export pixel to solid white (#ffffff)
|
||||
for (let i = 0; i < sData.length; i += 4) {
|
||||
if (sData[i + 3] > 20) {
|
||||
eData[i] = 255;
|
||||
eData[i + 1] = 255;
|
||||
eData[i + 2] = 255;
|
||||
eData[i + 3] = 255;
|
||||
}
|
||||
}
|
||||
|
||||
ctx.putImageData(exportData, 0, 0);
|
||||
|
||||
return new Promise((resolve) => {
|
||||
exportCanvas.toBlob((blob) => resolve(blob), 'image/png');
|
||||
});
|
||||
}, []);
|
||||
|
||||
useEffect(() => {
|
||||
if (onExportReady) {
|
||||
onExportReady(getMaskBlob);
|
||||
}
|
||||
}, [onExportReady, getMaskBlob]);
|
||||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
{/* Top Toolbar: Brush, Eraser, Auto-mask, Brush Size, Undo/Redo */}
|
||||
<div className="flex flex-wrap items-center justify-between gap-3 p-3 bg-paper-hi border border-rule rounded-2xl shadow-xs">
|
||||
{/* Tool Selectors */}
|
||||
<div className="flex items-center gap-1.5">
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setTool('brush')}
|
||||
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-body font-semibold transition-colors cursor-pointer ${
|
||||
tool === 'brush'
|
||||
? 'bg-ink text-paper-hi shadow-xs'
|
||||
: 'bg-paper-2 text-ink-2 hover:bg-paper hover:text-ink'
|
||||
}`}
|
||||
>
|
||||
<Paintbrush className="w-3.5 h-3.5" />
|
||||
<span>Brush (Add)</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setTool('eraser')}
|
||||
className={`inline-flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-body font-semibold transition-colors cursor-pointer ${
|
||||
tool === 'eraser'
|
||||
? 'bg-ink text-paper-hi shadow-xs'
|
||||
: 'bg-paper-2 text-ink-2 hover:bg-paper hover:text-ink'
|
||||
}`}
|
||||
>
|
||||
<Eraser className="w-3.5 h-3.5" />
|
||||
<span>Eraser (Sub)</span>
|
||||
</button>
|
||||
|
||||
{/* Auto-Mask Detection Button (if configured) */}
|
||||
{config?.autoMask?.enabled !== false && (
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleAutoMask}
|
||||
disabled={isAutoDetecting}
|
||||
className="inline-flex items-center gap-1.5 px-3 py-1.5 rounded-xl text-xs font-body font-semibold text-accent bg-accent/10 border border-accent/20 hover:bg-accent/20 transition-colors cursor-pointer disabled:opacity-50"
|
||||
>
|
||||
<Sparkles className={`w-3.5 h-3.5 ${isAutoDetecting ? 'animate-spin' : ''}`} />
|
||||
<span>
|
||||
{isAutoDetecting
|
||||
? 'Detecting mask...'
|
||||
: resolveLocalised(config?.autoMask?.buttonLabel, locale) || 'Auto-Detect Mask'}
|
||||
</span>
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Brush Size Slider */}
|
||||
<div className="flex items-center gap-2.5 px-2">
|
||||
<span className="text-[11px] font-medium text-muted font-body">Size:</span>
|
||||
<input
|
||||
type="range"
|
||||
min={6}
|
||||
max={96}
|
||||
value={brushSize}
|
||||
onChange={(e) => setBrushSize(Number(e.target.value))}
|
||||
className="w-24 sm:w-32 h-1.5 bg-rule rounded-lg appearance-none cursor-pointer accent-accent"
|
||||
/>
|
||||
<span className="text-[11px] font-mono font-semibold text-ink w-7 text-right">
|
||||
{brushSize}px
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* History & Actions */}
|
||||
<div className="flex items-center gap-1.5">
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleUndo}
|
||||
disabled={!canUndo}
|
||||
className="p-1.5 rounded-xl bg-paper-2 text-ink hover:bg-paper disabled:opacity-40 transition-colors cursor-pointer"
|
||||
title="Undo stroke"
|
||||
>
|
||||
<Undo2 className="w-4 h-4" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={handleRedo}
|
||||
disabled={!canRedo}
|
||||
className="p-1.5 rounded-xl bg-paper-2 text-ink hover:bg-paper disabled:opacity-40 transition-colors cursor-pointer"
|
||||
title="Redo stroke"
|
||||
>
|
||||
<Redo2 className="w-4 h-4" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={() => setShowMask((prev) => !prev)}
|
||||
className="p-1.5 rounded-xl bg-paper-2 text-ink hover:bg-paper transition-colors cursor-pointer"
|
||||
title={showMask ? 'Hide mask overlay' : 'Show mask overlay'}
|
||||
>
|
||||
{showMask ? <Eye className="w-4 h-4" /> : <EyeOff className="w-4 h-4 text-muted" />}
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={invertMask}
|
||||
className="p-1.5 rounded-xl bg-paper-2 text-ink hover:bg-paper transition-colors cursor-pointer"
|
||||
title="Invert mask"
|
||||
>
|
||||
<RotateCcw className="w-4 h-4" />
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
onClick={clearMask}
|
||||
disabled={!hasDrawnMask}
|
||||
className="p-1.5 rounded-xl bg-paper-2 text-red-600 hover:bg-red-50 disabled:opacity-40 transition-colors cursor-pointer"
|
||||
title="Clear entire mask"
|
||||
>
|
||||
<Trash2 className="w-4 h-4" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Interactive Mask Canvas Stage */}
|
||||
<div
|
||||
ref={containerRef}
|
||||
onMouseEnter={() => setIsHovered(true)}
|
||||
onMouseLeave={() => {
|
||||
setIsHovered(false);
|
||||
setCursorPos(null);
|
||||
}}
|
||||
className="relative w-full max-h-[600px] overflow-hidden rounded-2xl bg-paper-2 border border-rule flex items-center justify-center cursor-crosshair select-none isolate"
|
||||
>
|
||||
{/* Underlying Image */}
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
ref={imageRef}
|
||||
src={imageUrl}
|
||||
alt="Original for masking"
|
||||
onLoad={setupCanvas}
|
||||
className="max-h-[580px] w-auto max-w-full object-contain pointer-events-none"
|
||||
/>
|
||||
|
||||
{/* Mask Overlay Canvas */}
|
||||
<canvas
|
||||
ref={maskCanvasRef}
|
||||
onPointerDown={handlePointerDown}
|
||||
onPointerMove={handlePointerMove}
|
||||
onPointerUp={handlePointerUp}
|
||||
onPointerCancel={handlePointerUp}
|
||||
style={{
|
||||
touchAction: 'none',
|
||||
opacity: showMask ? 1 : 0
|
||||
}}
|
||||
className="absolute inset-0 w-full h-full object-contain pointer-events-auto transition-opacity"
|
||||
/>
|
||||
|
||||
{/* Live Circular Brush Size Cursor Indicator */}
|
||||
{isHovered && cursorPos && (
|
||||
<div
|
||||
className="pointer-events-none absolute rounded-full border-2 border-white/90 shadow-[0_0_8px_rgba(0,0,0,0.5)] -translate-x-1/2 -translate-y-1/2 z-30"
|
||||
style={{
|
||||
left: `${cursorPos.x}px`,
|
||||
top: `${cursorPos.y}px`,
|
||||
width: `${brushSize}px`,
|
||||
height: `${brushSize}px`,
|
||||
backgroundColor: tool === 'brush' ? 'rgba(239, 68, 68, 0.35)' : 'rgba(255, 255, 255, 0.35)',
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
|
||||
{/* Canvas Helper Hint */}
|
||||
<div className="flex items-center justify-between text-xs text-muted font-body px-1">
|
||||
<span>💡 Paint over objects, tourists, or areas you wish to modify or erase.</span>
|
||||
<span className="font-mono text-[11px]">
|
||||
{hasDrawnMask ? 'Mask ready for processing' : 'No mask drawn yet'}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,161 @@
|
||||
'use client';
|
||||
|
||||
import React from 'react';
|
||||
import { ThumbnailItem, resolveLocalised } from '@/types';
|
||||
import { Check, Sparkles } from 'lucide-react';
|
||||
|
||||
interface ThumbnailsSectionProps {
|
||||
thumbnails: ThumbnailItem[];
|
||||
selectedId?: string;
|
||||
onSelect: (item: ThumbnailItem) => void;
|
||||
locale?: string;
|
||||
title?: string;
|
||||
subtitle?: string;
|
||||
variant?: 'grid' | 'carousel' | 'compact-bar';
|
||||
className?: string;
|
||||
}
|
||||
|
||||
export function ThumbnailsSection({
|
||||
thumbnails,
|
||||
selectedId,
|
||||
onSelect,
|
||||
locale = 'en',
|
||||
title = 'Available Styles & Presets',
|
||||
subtitle = 'Choose a look to apply to your image',
|
||||
variant = 'grid',
|
||||
className = '',
|
||||
}: ThumbnailsSectionProps) {
|
||||
if (!thumbnails || thumbnails.length === 0) return null;
|
||||
|
||||
// 1. Compact Bar (Ideal for inside the Studio Editor)
|
||||
if (variant === 'compact-bar') {
|
||||
return (
|
||||
<div className={`space-y-2.5 ${className}`}>
|
||||
<div className="flex items-center justify-between text-xs font-body">
|
||||
<span className="font-semibold text-ink flex items-center gap-1.5">
|
||||
<Sparkles className="w-3.5 h-3.5 text-accent" />
|
||||
<span>Select Style Preset</span>
|
||||
</span>
|
||||
<span className="text-muted text-[11px]">{thumbnails.length} presets</span>
|
||||
</div>
|
||||
|
||||
<div className="flex items-center gap-3 overflow-x-auto no-scrollbar py-1">
|
||||
{thumbnails.map((item) => {
|
||||
const isSelected = selectedId === item.id;
|
||||
const label = resolveLocalised(item.label, locale);
|
||||
|
||||
return (
|
||||
<button
|
||||
key={item.id}
|
||||
type="button"
|
||||
onClick={() => onSelect(item)}
|
||||
className={`group relative shrink-0 flex flex-col items-center gap-1.5 p-1.5 rounded-2xl border transition-all cursor-pointer ${
|
||||
isSelected
|
||||
? 'border-accent bg-accent/10 ring-2 ring-accent/30 shadow-xs'
|
||||
: 'border-rule bg-paper-hi hover:border-accent/50'
|
||||
}`}
|
||||
>
|
||||
<div className="relative w-14 h-14 sm:w-16 sm:h-16 rounded-xl overflow-hidden bg-paper-2">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={item.thumbnail || item.preview || ''}
|
||||
alt={label}
|
||||
className="w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"
|
||||
/>
|
||||
{isSelected && (
|
||||
<div className="absolute inset-0 bg-accent/25 flex items-center justify-center">
|
||||
<div className="w-5 h-5 rounded-full bg-accent text-white flex items-center justify-center shadow-xs">
|
||||
<Check className="w-3 h-3 stroke-[3]" />
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<span className="text-[11px] font-body font-medium text-ink truncate max-w-[72px]">
|
||||
{label}
|
||||
</span>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
// 2. Full Section (Ideal for the Landing Page)
|
||||
return (
|
||||
<section className={`py-12 sm:py-16 border-t border-rule bg-paper ${className}`}>
|
||||
<div className="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 space-y-8">
|
||||
{/* Header */}
|
||||
<div className="text-center max-w-2xl mx-auto space-y-2">
|
||||
<div className="inline-flex items-center gap-2 px-3 py-1 rounded-full bg-accent/10 border border-accent/20 text-accent text-xs font-semibold font-body">
|
||||
<Sparkles className="w-3.5 h-3.5" />
|
||||
<span>Preset Gallery</span>
|
||||
</div>
|
||||
<h2 className="text-2xl sm:text-3xl font-display font-bold text-ink tracking-tight">
|
||||
{title}
|
||||
</h2>
|
||||
<p className="text-xs sm:text-sm text-ink-2 font-body leading-relaxed">
|
||||
{subtitle}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
{/* Presets Grid */}
|
||||
<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-4 sm:gap-5">
|
||||
{thumbnails.map((item) => {
|
||||
const isSelected = selectedId === item.id;
|
||||
const label = resolveLocalised(item.label, locale);
|
||||
const desc = item.description ? resolveLocalised(item.description, locale) : '';
|
||||
|
||||
return (
|
||||
<button
|
||||
key={item.id}
|
||||
type="button"
|
||||
onClick={() => onSelect(item)}
|
||||
className={`group relative text-left p-3 rounded-2xl border transition-all duration-200 cursor-pointer flex flex-col justify-between ${
|
||||
isSelected
|
||||
? 'border-accent bg-paper-hi ring-2 ring-accent/30 shadow-md scale-[1.02]'
|
||||
: 'border-rule bg-paper-hi hover:border-accent/40 hover:shadow-xs'
|
||||
}`}
|
||||
>
|
||||
<div>
|
||||
<div className="relative aspect-square w-full rounded-xl overflow-hidden bg-paper-2 mb-3">
|
||||
{/* eslint-disable-next-line @next/next/no-img-element */}
|
||||
<img
|
||||
src={item.thumbnail || item.preview || ''}
|
||||
alt={label}
|
||||
className="w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"
|
||||
/>
|
||||
{item.badge && (
|
||||
<span className="absolute top-2 left-2 px-2 py-0.5 rounded-full bg-ink/80 backdrop-blur-md text-[9px] font-bold text-paper-hi uppercase tracking-wider">
|
||||
{item.badge}
|
||||
</span>
|
||||
)}
|
||||
{isSelected && (
|
||||
<div className="absolute top-2 right-2 w-5 h-5 rounded-full bg-accent text-white flex items-center justify-center shadow-xs">
|
||||
<Check className="w-3 h-3 stroke-[3]" />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<h3 className="text-xs sm:text-sm font-display font-bold text-ink tracking-tight">
|
||||
{label}
|
||||
</h3>
|
||||
{desc && (
|
||||
<p className="text-[11px] text-muted font-body mt-0.5 line-clamp-2">
|
||||
{desc}
|
||||
</p>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<div className="mt-3 pt-2 border-t border-rule/60 flex items-center justify-between text-[10px] font-body text-accent font-semibold">
|
||||
<span>{isSelected ? 'Selected' : 'Use this style'}</span>
|
||||
<span>→</span>
|
||||
</div>
|
||||
</button>
|
||||
);
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
@@ -7,13 +7,18 @@ export async function generateMockNeuralResult(
|
||||
toolId: string,
|
||||
variantId?: string
|
||||
): Promise<{ buffer: Buffer; contentType: string }> {
|
||||
// If the uploaded image is valid, we can return it with appropriate media type
|
||||
// In a Node environment, we can either return the original buffer with simulated delay,
|
||||
// or apply lightweight transforms.
|
||||
|
||||
// Simulate 350ms neural inference latency
|
||||
await new Promise((resolve) => setTimeout(resolve, 350));
|
||||
|
||||
// If buffer is a small text seed (e.g. text-to-image), create a valid synthetic image buffer
|
||||
if (imageBuffer.length < 500) {
|
||||
const syntheticPng = createSyntheticArtPng(512, 512, toolId);
|
||||
return {
|
||||
buffer: syntheticPng,
|
||||
contentType: 'image/png',
|
||||
};
|
||||
}
|
||||
|
||||
const isPng = imageBuffer.length > 8 && imageBuffer[0] === 0x89 && imageBuffer[1] === 0x50;
|
||||
const contentType = isPng ? 'image/png' : 'image/jpeg';
|
||||
|
||||
@@ -22,3 +27,63 @@ export async function generateMockNeuralResult(
|
||||
contentType,
|
||||
};
|
||||
}
|
||||
|
||||
function createSyntheticArtPng(width: number, height: number, seedText: string): Buffer {
|
||||
const zlib = require('zlib');
|
||||
const signature = Buffer.from([0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a]);
|
||||
|
||||
const ihdr = Buffer.alloc(13);
|
||||
ihdr.writeUInt32BE(width, 0);
|
||||
ihdr.writeUInt32BE(height, 4);
|
||||
ihdr.writeUInt8(8, 8);
|
||||
ihdr.writeUInt8(6, 9); // RGBA
|
||||
ihdr.writeUInt8(0, 10);
|
||||
ihdr.writeUInt8(0, 11);
|
||||
ihdr.writeUInt8(0, 12);
|
||||
|
||||
const ihdrChunk = makePngChunk('IHDR', ihdr);
|
||||
|
||||
const rawData = Buffer.alloc((width * 4 + 1) * height);
|
||||
let offset = 0;
|
||||
for (let y = 0; y < height; y++) {
|
||||
rawData[offset++] = 0;
|
||||
for (let x = 0; x < width; x++) {
|
||||
rawData[offset++] = Math.floor((x / width) * 200 + 40);
|
||||
rawData[offset++] = Math.floor((y / height) * 160 + 50);
|
||||
rawData[offset++] = 220;
|
||||
rawData[offset++] = 255;
|
||||
}
|
||||
}
|
||||
|
||||
const compressed = zlib.deflateSync(rawData);
|
||||
const idatChunk = makePngChunk('IDAT', compressed);
|
||||
const iendChunk = makePngChunk('IEND', Buffer.alloc(0));
|
||||
|
||||
return Buffer.concat([signature, ihdrChunk, idatChunk, iendChunk]);
|
||||
}
|
||||
|
||||
function makePngChunk(type: string, data: Buffer): Buffer {
|
||||
const length = Buffer.alloc(4);
|
||||
length.writeUInt32BE(data.length, 0);
|
||||
const typeBuf = Buffer.from(type, 'ascii');
|
||||
const body = Buffer.concat([typeBuf, data]);
|
||||
const crc = Buffer.alloc(4);
|
||||
|
||||
let c = 0xffffffff;
|
||||
for (let n = 0; n < body.length; n++) {
|
||||
c = CRC_TABLE[(c ^ body[n]) & 0xff] ^ (c >>> 8);
|
||||
}
|
||||
crc.writeInt32BE((c ^ 0xffffffff) | 0, 0);
|
||||
|
||||
return Buffer.concat([length, body, crc]);
|
||||
}
|
||||
|
||||
const CRC_TABLE = new Uint32Array(256);
|
||||
for (let n = 0; n < 256; n++) {
|
||||
let c = n;
|
||||
for (let k = 0; k < 8; k++) {
|
||||
if (c & 1) c = 0xedb88320 ^ (c >>> 1);
|
||||
else c = c >>> 1;
|
||||
}
|
||||
CRC_TABLE[n] = c;
|
||||
}
|
||||
|
||||
@@ -80,7 +80,24 @@ export function getAllTools(): ToolItem[] {
|
||||
if (mgmtTool.media?.after && mgmtTool.content?.examples?.[0]) {
|
||||
mgmtTool.content.examples[0].after = mgmtTool.media.after;
|
||||
}
|
||||
toolsCache.set(mgmtTool.slug, mgmtTool);
|
||||
const existing = toolsCache.get(mgmtTool.slug) || ({} as any);
|
||||
const merged: ToolItem = {
|
||||
...existing,
|
||||
...mgmtTool,
|
||||
content: {
|
||||
...(existing.content || {}),
|
||||
...(mgmtTool.content || {}),
|
||||
alternatingFeatures: mgmtTool.content?.alternatingFeatures || existing.content?.alternatingFeatures,
|
||||
},
|
||||
pageType: mgmtTool.pageType || existing.pageType,
|
||||
showThumbnailsSection: mgmtTool.showThumbnailsSection !== undefined ? mgmtTool.showThumbnailsSection : existing.showThumbnailsSection,
|
||||
thumbnailPlacement: mgmtTool.thumbnailPlacement || existing.thumbnailPlacement,
|
||||
thumbnails: mgmtTool.thumbnails || existing.thumbnails,
|
||||
maskingConfig: mgmtTool.maskingConfig || existing.maskingConfig,
|
||||
twoImagesConfig: mgmtTool.twoImagesConfig || existing.twoImagesConfig,
|
||||
textToImageConfig: mgmtTool.textToImageConfig || existing.textToImageConfig,
|
||||
};
|
||||
toolsCache.set(mgmtTool.slug, merged);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,6 +158,60 @@ export interface EndpointSpec {
|
||||
hash: string;
|
||||
}
|
||||
|
||||
export type ToolPageType =
|
||||
| 'image-only'
|
||||
| 'image-thumbnail'
|
||||
| 'masking'
|
||||
| 'text-to-image'
|
||||
| 'two-images';
|
||||
|
||||
export interface ThumbnailItem {
|
||||
id: string;
|
||||
label: Localised;
|
||||
thumbnail: string;
|
||||
preview?: string;
|
||||
value: string;
|
||||
description?: Localised;
|
||||
badge?: string;
|
||||
}
|
||||
|
||||
export interface MaskingConfig {
|
||||
autoMask?: {
|
||||
enabled: boolean;
|
||||
endpoint?: string;
|
||||
module?: string;
|
||||
buttonLabel?: Localised;
|
||||
description?: Localised;
|
||||
};
|
||||
maskParamName?: string;
|
||||
imageParamName?: string;
|
||||
defaultBrushSize?: number;
|
||||
}
|
||||
|
||||
export interface TwoImagesConfig {
|
||||
firstImageParam?: string;
|
||||
firstImageLabel?: Localised;
|
||||
secondImageParam?: string;
|
||||
secondImageLabel?: Localised;
|
||||
}
|
||||
|
||||
export interface TextToImageConfig {
|
||||
promptParam?: string;
|
||||
placeholder?: Localised;
|
||||
negativePromptParam?: string;
|
||||
aspectRatios?: Array<{ label: string; value: string }>;
|
||||
samplePrompts?: Localised[];
|
||||
}
|
||||
|
||||
export interface AlternatingFeature {
|
||||
title: Localised;
|
||||
description: Localised;
|
||||
image: string;
|
||||
badge?: Localised;
|
||||
caption?: Localised;
|
||||
metrics?: Array<{ label: string; value: string }>;
|
||||
}
|
||||
|
||||
export interface ToolItem {
|
||||
id: string;
|
||||
slug: string;
|
||||
@@ -168,6 +222,13 @@ export interface ToolItem {
|
||||
homeApp: string;
|
||||
alsoIn?: string[];
|
||||
featured?: boolean;
|
||||
pageType?: ToolPageType;
|
||||
showThumbnailsSection?: boolean;
|
||||
thumbnailPlacement?: 'before-upload' | 'after-upload' | 'both';
|
||||
thumbnails?: ThumbnailItem[];
|
||||
maskingConfig?: MaskingConfig;
|
||||
twoImagesConfig?: TwoImagesConfig;
|
||||
textToImageConfig?: TextToImageConfig;
|
||||
tryIt: {
|
||||
enabled: boolean;
|
||||
endpointRef: {
|
||||
@@ -200,6 +261,7 @@ export interface ToolItem {
|
||||
alt?: Localised;
|
||||
caption?: string;
|
||||
}>;
|
||||
alternatingFeatures?: AlternatingFeature[];
|
||||
faqs?: Array<{
|
||||
q: string;
|
||||
a: string;
|
||||
|
||||
Reference in New Issue
Block a user