fix: align male and female effect IDs with thumbnails, add gender filter tabs and strip request prefixes

This commit is contained in:
2026-11-12 13:50:06 +05:30
parent 5445a8cbee
commit 473b269080
13 changed files with 1339 additions and 720 deletions
+186 -74
View File
@@ -20,131 +20,243 @@
"thumbnails": [
{
"id": "female_ComicCover1",
"value": "ComicCover1",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover1",
"hi": "प्रीसेट female_ComicCover1"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover10",
"label": {
"en": "Preset female_ComicCover10",
"hi": "प्रीसेट female_ComicCover10"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover11",
"label": {
"en": "Preset female_ComicCover11",
"hi": "प्रीसेट female_ComicCover11"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover12",
"label": {
"en": "Preset female_ComicCover12",
"hi": "प्रीसेट female_ComicCover12"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover13",
"label": {
"en": "Preset female_ComicCover13",
"hi": "प्रीसेट female_ComicCover13"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover14",
"label": {
"en": "Preset female_ComicCover14",
"hi": "प्रीसेट female_ComicCover14"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover15",
"label": {
"en": "Preset female_ComicCover15",
"hi": "प्रीसेट female_ComicCover15"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover16",
"label": {
"en": "Preset female_ComicCover16",
"hi": "प्रीसेट female_ComicCover16"
"en": "Comic Cover #1 (Female)",
"hi": "कॉमिक कवर #1 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover2",
"value": "ComicCover2",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover2",
"hi": "प्रीसेट female_ComicCover2"
"en": "Comic Cover #2 (Female)",
"hi": "कॉमिक कवर #2 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover3",
"value": "ComicCover3",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover3",
"hi": "प्रीसेट female_ComicCover3"
"en": "Comic Cover #3 (Female)",
"hi": "कॉमिक कवर #3 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover4",
"value": "ComicCover4",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover4",
"hi": "प्रीसेट female_ComicCover4"
"en": "Comic Cover #4 (Female)",
"hi": "कॉमिक कवर #4 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover5",
"value": "ComicCover5",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover5",
"hi": "प्रीसेट female_ComicCover5"
"en": "Comic Cover #5 (Female)",
"hi": "कॉमिक कवर #5 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover6",
"value": "ComicCover6",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover6",
"hi": "प्रीसेट female_ComicCover6"
"en": "Comic Cover #6 (Female)",
"hi": "कॉमिक कवर #6 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover7",
"value": "ComicCover7",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover7",
"hi": "प्रीसेट female_ComicCover7"
"en": "Comic Cover #7 (Female)",
"hi": "कॉमिक कवर #7 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover8",
"value": "ComicCover8",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover8",
"hi": "प्रीसेट female_ComicCover8"
"en": "Comic Cover #8 (Female)",
"hi": "कॉमिक कवर #8 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover9",
"value": "ComicCover9",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover9",
"hi": "प्रीसेट female_ComicCover9"
"en": "Comic Cover #9 (Female)",
"hi": "कॉमिक कवर #9 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover10",
"value": "ComicCover10",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Comic Cover #10 (Female)",
"hi": "कॉमिक कवर #10 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover1",
"value": "ComicCover1",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #1 (Male)",
"hi": "कॉमिक कवर #1 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover2",
"value": "ComicCover2",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #2 (Male)",
"hi": "कॉमिक कवर #2 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover3",
"value": "ComicCover3",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #3 (Male)",
"hi": "कॉमिक कवर #3 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover4",
"value": "ComicCover4",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #4 (Male)",
"hi": "कॉमिक कवर #4 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover5",
"value": "ComicCover5",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #5 (Male)",
"hi": "कॉमिक कवर #5 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover6",
"value": "ComicCover6",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #6 (Male)",
"hi": "कॉमिक कवर #6 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover7",
"value": "ComicCover7",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #7 (Male)",
"hi": "कॉमिक कवर #7 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover8",
"value": "ComicCover8",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #8 (Male)",
"hi": "कॉमिक कवर #8 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover9",
"value": "ComicCover9",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #9 (Male)",
"hi": "कॉमिक कवर #9 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover10",
"value": "ComicCover10",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #10 (Male)",
"hi": "कॉमिक कवर #10 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
}
],
"tryIt": {
+83 -91
View File
@@ -19,132 +19,124 @@
"thumbnailPlacement": "after-upload",
"thumbnails": [
{
"id": "CASUAL_C_1",
"id": "black_dress",
"value": "black_dress",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_1",
"hi": "प्रीसेट CASUAL_C_1"
"en": "Black Evening Gown",
"hi": "ब्लैक इवनिंग गाउन"
},
"previewUrl": "https://images.unsplash.com/photo-1539109136881-3be0616acf4b?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_F_1",
"value": "CASUAL_F_1",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Women Casual Chic #1",
"hi": "महिला कैजुअल वियर #1"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_10",
"id": "CASUAL_F_2",
"value": "CASUAL_F_2",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_10",
"hi": "प्रीसेट CASUAL_C_10"
"en": "Women Denim Style #2",
"hi": "महिला डेनिम स्टाइल #2"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1529139574466-a303027c1d8b?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_11",
"id": "CASUAL_F_3",
"value": "CASUAL_F_3",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_11",
"hi": "प्रीसेट CASUAL_C_11"
"en": "Women Urban Casual #3",
"hi": "महिला अर्बन कैजुअल #3"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1496747611176-843222e1e57c?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_12",
"id": "CASUAL_F_10",
"value": "CASUAL_F_10",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_12",
"hi": "प्रीसेट CASUAL_C_12"
"en": "Women Summer Outfit #10",
"hi": "महिला समर ऑउटफिट #10"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1502716119720-b23a93e5fe1b?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_13",
"id": "formal_suit",
"value": "formal_suit",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_13",
"hi": "प्रीसेट CASUAL_C_13"
"en": "Classic Business Suit",
"hi": "क्लासिक बिजनेस सूट"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1507679799987-c73779587ccf?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_14",
"id": "CASUAL_M_1",
"value": "CASUAL_M_1",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_14",
"hi": "प्रीसेट CASUAL_C_14"
"en": "Men Casual Polo #1",
"hi": "पुरुष कैजुअल पोलो #1"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1516257984-b1b4d707412e?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_15",
"id": "CASUAL_M_2",
"value": "CASUAL_M_2",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_15",
"hi": "प्रीसेट CASUAL_C_15"
"en": "Men Streetwear #2",
"hi": "पुरुष स्ट्रीटवियर #2"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1520975954732-35dd22299614?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_16",
"id": "CASUAL_M_3",
"value": "CASUAL_M_3",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_16",
"hi": "प्रीसेट CASUAL_C_16"
"en": "Men Autumn Layer #3",
"hi": "पुरुष ऑटम लेयर #3"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1492562080023-ab3db95bfbce?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_17",
"id": "CASUAL_M_10",
"value": "CASUAL_M_10",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_17",
"hi": "प्रीसेट CASUAL_C_17"
"en": "Men Minimalist Fit #10",
"hi": "पुरुष मिनिमलिस्ट फिट #10"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_18",
"label": {
"en": "Preset CASUAL_C_18",
"hi": "प्रीसेट CASUAL_C_18"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_19",
"label": {
"en": "Preset CASUAL_C_19",
"hi": "प्रीसेट CASUAL_C_19"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_2",
"label": {
"en": "Preset CASUAL_C_2",
"hi": "प्रीसेट CASUAL_C_2"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_20",
"label": {
"en": "Preset CASUAL_C_20",
"hi": "प्रीसेट CASUAL_C_20"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_21",
"label": {
"en": "Preset CASUAL_C_21",
"hi": "प्रीसेट CASUAL_C_21"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_22",
"label": {
"en": "Preset CASUAL_C_22",
"hi": "प्रीसेट CASUAL_C_22"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_23",
"label": {
"en": "Preset CASUAL_C_23",
"hi": "प्रीसेट CASUAL_C_23"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=800&auto=format&fit=crop&q=80"
}
],
"maskingConfig": {
+135 -93
View File
@@ -20,131 +20,173 @@
"thumbnails": [
{
"id": "E1",
"value": "E1",
"badge": "Iris Color",
"label": {
"en": "Preset E1",
"hi": "प्रीसेट E1"
"en": "Sapphire Blue Iris",
"hi": "नीली आँखें (E1)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E2",
"value": "E2",
"badge": "Iris Color",
"label": {
"en": "Preset E2",
"hi": "प्रीसेट E2"
"en": "Emerald Green Iris",
"hi": "हरी आँखें (E2)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E5",
"value": "E5",
"badge": "Iris Color",
"label": {
"en": "Preset E5",
"hi": "प्रीसेट E5"
"en": "Amber Hazel Iris",
"hi": "अम्बर आँखें (E5)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E6",
"value": "E6",
"badge": "Iris Color",
"label": {
"en": "Preset E6",
"hi": "प्रीसेट E6"
"en": "Steel Gray Iris",
"hi": "ग्रे आँखें (E6)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E9",
"value": "E9",
"badge": "Iris Color",
"label": {
"en": "Preset E9",
"hi": "प्रीसेट E9"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM1",
"label": {
"en": "Preset GM1",
"hi": "प्रीसेट GM1"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM10",
"label": {
"en": "Preset GM10",
"hi": "प्रीसेट GM10"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM2",
"label": {
"en": "Preset GM2",
"hi": "प्रीसेट GM2"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM3",
"label": {
"en": "Preset GM3",
"hi": "प्रीसेट GM3"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM4",
"label": {
"en": "Preset GM4",
"hi": "प्रीसेट GM4"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM5",
"label": {
"en": "Preset GM5",
"hi": "प्रीसेट GM5"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM6",
"label": {
"en": "Preset GM6",
"hi": "प्रीसेट GM6"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM7",
"label": {
"en": "Preset GM7",
"hi": "प्रीसेट GM7"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM8",
"label": {
"en": "Preset GM8",
"hi": "प्रीसेट GM8"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM9",
"label": {
"en": "Preset GM9",
"hi": "प्रीसेट GM9"
"en": "Espresso Brown Iris",
"hi": "डार्क ब्राउन आँखें (E9)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW1",
"value": "GW1",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Preset GW1",
"hi": "प्रीसेट GW1"
"en": "Women Eyewear #1",
"hi": "महिला चश्मा #1"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW2",
"value": "GW2",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #2",
"hi": "महिला चश्मा #2"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW3",
"value": "GW3",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #3",
"hi": "महिला चश्मा #3"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW4",
"value": "GW4",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #4",
"hi": "महिला चश्मा #4"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW5",
"value": "GW5",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #5",
"hi": "महिला चश्मा #5"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM1",
"value": "GM1",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #1",
"hi": "पुरुष चश्मा #1"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM2",
"value": "GM2",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #2",
"hi": "पुरुष चश्मा #2"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM3",
"value": "GM3",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #3",
"hi": "पुरुष चश्मा #3"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM4",
"value": "GM4",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #4",
"hi": "पुरुष चश्मा #4"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM5",
"value": "GM5",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #5",
"hi": "पुरुष चश्मा #5"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
}
],
"maskingConfig": {
+160 -96
View File
@@ -20,131 +20,195 @@
"thumbnails": [
{
"id": "F1",
"value": "F1",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F1",
"hi": "प्रीसेट F1"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F10",
"label": {
"en": "Preset F10",
"hi": "प्रीसेट F10"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F11",
"label": {
"en": "Preset F11",
"hi": "प्रीसेट F11"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F12",
"label": {
"en": "Preset F12",
"hi": "प्रीसेट F12"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F13",
"label": {
"en": "Preset F13",
"hi": "प्रीसेट F13"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F14",
"label": {
"en": "Preset F14",
"hi": "प्रीसेट F14"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F15",
"label": {
"en": "Preset F15",
"hi": "प्रीसेट F15"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F16",
"label": {
"en": "Preset F16",
"hi": "प्रीसेट F16"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F17",
"label": {
"en": "Preset F17",
"hi": "प्रीसेट F17"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F18",
"label": {
"en": "Preset F18",
"hi": "प्रीसेट F18"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F19",
"label": {
"en": "Preset F19",
"hi": "प्रीसेट F19"
"en": "Vintage Film F1 (Female)",
"hi": "विंटेज फिल्म F1 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F2",
"value": "F2",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F2",
"hi": "प्रीसेट F2"
"en": "Vintage Film F2 (Female)",
"hi": "विंटेज फिल्म F2 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F20",
"id": "F3",
"value": "F3",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F20",
"hi": "प्रीसेट F20"
"en": "Vintage Film F3 (Female)",
"hi": "विंटेज फिल्म F3 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F21",
"id": "F4",
"value": "F4",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F21",
"hi": "प्रीसेट F21"
"en": "Vintage Film F4 (Female)",
"hi": "विंटेज फिल्म F4 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F22",
"id": "F5",
"value": "F5",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F22",
"hi": "प्रीसेट F22"
"en": "Vintage Film F5 (Female)",
"hi": "विंटेज फिल्म F5 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F23",
"id": "F6",
"value": "F6",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F23",
"hi": "प्रीसेट F23"
"en": "Vintage Film F6 (Female)",
"hi": "विंटेज फिल्म F6 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F7",
"value": "F7",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Vintage Film F7 (Female)",
"hi": "विंटेज फिल्म F7 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F8",
"value": "F8",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Vintage Film F8 (Female)",
"hi": "विंटेज फिल्म F8 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M1",
"value": "M1",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M1 (Male)",
"hi": "विंटेज फिल्म M1 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M2",
"value": "M2",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M2 (Male)",
"hi": "विंटेज फिल्म M2 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M3",
"value": "M3",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M3 (Male)",
"hi": "विंटेज फिल्म M3 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M4",
"value": "M4",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M4 (Male)",
"hi": "विंटेज फिल्म M4 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M5",
"value": "M5",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M5 (Male)",
"hi": "विंटेज फिल्म M5 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M6",
"value": "M6",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M6 (Male)",
"hi": "विंटेज फिल्म M6 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M7",
"value": "M7",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M7 (Male)",
"hi": "विंटेज फिल्म M7 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M8",
"value": "M8",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M8 (Male)",
"hi": "विंटेज फिल्म M8 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
}
],
"tryIt": {
@@ -20,131 +20,243 @@
"thumbnails": [
{
"id": "female_ComicCover1",
"value": "ComicCover1",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover1",
"hi": "प्रीसेट female_ComicCover1"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover10",
"label": {
"en": "Preset female_ComicCover10",
"hi": "प्रीसेट female_ComicCover10"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover11",
"label": {
"en": "Preset female_ComicCover11",
"hi": "प्रीसेट female_ComicCover11"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover12",
"label": {
"en": "Preset female_ComicCover12",
"hi": "प्रीसेट female_ComicCover12"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover13",
"label": {
"en": "Preset female_ComicCover13",
"hi": "प्रीसेट female_ComicCover13"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover14",
"label": {
"en": "Preset female_ComicCover14",
"hi": "प्रीसेट female_ComicCover14"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover15",
"label": {
"en": "Preset female_ComicCover15",
"hi": "प्रीसेट female_ComicCover15"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover16",
"label": {
"en": "Preset female_ComicCover16",
"hi": "प्रीसेट female_ComicCover16"
"en": "Comic Cover #1 (Female)",
"hi": "कॉमिक कवर #1 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover2",
"value": "ComicCover2",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover2",
"hi": "प्रीसेट female_ComicCover2"
"en": "Comic Cover #2 (Female)",
"hi": "कॉमिक कवर #2 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover3",
"value": "ComicCover3",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover3",
"hi": "प्रीसेट female_ComicCover3"
"en": "Comic Cover #3 (Female)",
"hi": "कॉमिक कवर #3 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover4",
"value": "ComicCover4",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover4",
"hi": "प्रीसेट female_ComicCover4"
"en": "Comic Cover #4 (Female)",
"hi": "कॉमिक कवर #4 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover5",
"value": "ComicCover5",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover5",
"hi": "प्रीसेट female_ComicCover5"
"en": "Comic Cover #5 (Female)",
"hi": "कॉमिक कवर #5 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover6",
"value": "ComicCover6",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover6",
"hi": "प्रीसेट female_ComicCover6"
"en": "Comic Cover #6 (Female)",
"hi": "कॉमिक कवर #6 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover7",
"value": "ComicCover7",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover7",
"hi": "प्रीसेट female_ComicCover7"
"en": "Comic Cover #7 (Female)",
"hi": "कॉमिक कवर #7 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover8",
"value": "ComicCover8",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover8",
"hi": "प्रीसेट female_ComicCover8"
"en": "Comic Cover #8 (Female)",
"hi": "कॉमिक कवर #8 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover9",
"value": "ComicCover9",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset female_ComicCover9",
"hi": "प्रीसेट female_ComicCover9"
"en": "Comic Cover #9 (Female)",
"hi": "कॉमिक कवर #9 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "female_ComicCover10",
"value": "ComicCover10",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Comic Cover #10 (Female)",
"hi": "कॉमिक कवर #10 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1509198397868-475647b2a1e5?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover1",
"value": "ComicCover1",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #1 (Male)",
"hi": "कॉमिक कवर #1 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover2",
"value": "ComicCover2",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #2 (Male)",
"hi": "कॉमिक कवर #2 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover3",
"value": "ComicCover3",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #3 (Male)",
"hi": "कॉमिक कवर #3 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover4",
"value": "ComicCover4",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #4 (Male)",
"hi": "कॉमिक कवर #4 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover5",
"value": "ComicCover5",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #5 (Male)",
"hi": "कॉमिक कवर #5 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover6",
"value": "ComicCover6",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #6 (Male)",
"hi": "कॉमिक कवर #6 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover7",
"value": "ComicCover7",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #7 (Male)",
"hi": "कॉमिक कवर #7 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover8",
"value": "ComicCover8",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #8 (Male)",
"hi": "कॉमिक कवर #8 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover9",
"value": "ComicCover9",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #9 (Male)",
"hi": "कॉमिक कवर #9 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "male_ComicCover10",
"value": "ComicCover10",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Comic Cover #10 (Male)",
"hi": "कॉमिक कवर #10 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1506794778202-cad84cf45f1d?w=800&auto=format&fit=crop&q=80"
}
],
"tryIt": {
@@ -19,132 +19,124 @@
"thumbnailPlacement": "after-upload",
"thumbnails": [
{
"id": "CASUAL_C_1",
"id": "black_dress",
"value": "black_dress",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_1",
"hi": "प्रीसेट CASUAL_C_1"
"en": "Black Evening Gown",
"hi": "ब्लैक इवनिंग गाउन"
},
"previewUrl": "https://images.unsplash.com/photo-1539109136881-3be0616acf4b?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_F_1",
"value": "CASUAL_F_1",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Women Casual Chic #1",
"hi": "महिला कैजुअल वियर #1"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_10",
"id": "CASUAL_F_2",
"value": "CASUAL_F_2",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_10",
"hi": "प्रीसेट CASUAL_C_10"
"en": "Women Denim Style #2",
"hi": "महिला डेनिम स्टाइल #2"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1529139574466-a303027c1d8b?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_11",
"id": "CASUAL_F_3",
"value": "CASUAL_F_3",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_11",
"hi": "प्रीसेट CASUAL_C_11"
"en": "Women Urban Casual #3",
"hi": "महिला अर्बन कैजुअल #3"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1496747611176-843222e1e57c?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_12",
"id": "CASUAL_F_10",
"value": "CASUAL_F_10",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset CASUAL_C_12",
"hi": "प्रीसेट CASUAL_C_12"
"en": "Women Summer Outfit #10",
"hi": "महिला समर ऑउटफिट #10"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1502716119720-b23a93e5fe1b?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_13",
"id": "formal_suit",
"value": "formal_suit",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_13",
"hi": "प्रीसेट CASUAL_C_13"
"en": "Classic Business Suit",
"hi": "क्लासिक बिजनेस सूट"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1507679799987-c73779587ccf?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_14",
"id": "CASUAL_M_1",
"value": "CASUAL_M_1",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_14",
"hi": "प्रीसेट CASUAL_C_14"
"en": "Men Casual Polo #1",
"hi": "पुरुष कैजुअल पोलो #1"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1516257984-b1b4d707412e?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_15",
"id": "CASUAL_M_2",
"value": "CASUAL_M_2",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_15",
"hi": "प्रीसेट CASUAL_C_15"
"en": "Men Streetwear #2",
"hi": "पुरुष स्ट्रीटवियर #2"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1520975954732-35dd22299614?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_16",
"id": "CASUAL_M_3",
"value": "CASUAL_M_3",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_16",
"hi": "प्रीसेट CASUAL_C_16"
"en": "Men Autumn Layer #3",
"hi": "पुरुष ऑटम लेयर #3"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1492562080023-ab3db95bfbce?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_17",
"id": "CASUAL_M_10",
"value": "CASUAL_M_10",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Preset CASUAL_C_17",
"hi": "प्रीसेट CASUAL_C_17"
"en": "Men Minimalist Fit #10",
"hi": "पुरुष मिनिमलिस्ट फिट #10"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_18",
"label": {
"en": "Preset CASUAL_C_18",
"hi": "प्रीसेट CASUAL_C_18"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_19",
"label": {
"en": "Preset CASUAL_C_19",
"hi": "प्रीसेट CASUAL_C_19"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_2",
"label": {
"en": "Preset CASUAL_C_2",
"hi": "प्रीसेट CASUAL_C_2"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_20",
"label": {
"en": "Preset CASUAL_C_20",
"hi": "प्रीसेट CASUAL_C_20"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_21",
"label": {
"en": "Preset CASUAL_C_21",
"hi": "प्रीसेट CASUAL_C_21"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_22",
"label": {
"en": "Preset CASUAL_C_22",
"hi": "प्रीसेट CASUAL_C_22"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
},
{
"id": "CASUAL_C_23",
"label": {
"en": "Preset CASUAL_C_23",
"hi": "प्रीसेट CASUAL_C_23"
},
"previewUrl": "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1519085360753-af0119f7cbe7?w=800&auto=format&fit=crop&q=80"
}
],
"maskingConfig": {
@@ -20,131 +20,173 @@
"thumbnails": [
{
"id": "E1",
"value": "E1",
"badge": "Iris Color",
"label": {
"en": "Preset E1",
"hi": "प्रीसेट E1"
"en": "Sapphire Blue Iris",
"hi": "नीली आँखें (E1)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E2",
"value": "E2",
"badge": "Iris Color",
"label": {
"en": "Preset E2",
"hi": "प्रीसेट E2"
"en": "Emerald Green Iris",
"hi": "हरी आँखें (E2)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E5",
"value": "E5",
"badge": "Iris Color",
"label": {
"en": "Preset E5",
"hi": "प्रीसेट E5"
"en": "Amber Hazel Iris",
"hi": "अम्बर आँखें (E5)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E6",
"value": "E6",
"badge": "Iris Color",
"label": {
"en": "Preset E6",
"hi": "प्रीसेट E6"
"en": "Steel Gray Iris",
"hi": "ग्रे आँखें (E6)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "E9",
"value": "E9",
"badge": "Iris Color",
"label": {
"en": "Preset E9",
"hi": "प्रीसेट E9"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM1",
"label": {
"en": "Preset GM1",
"hi": "प्रीसेट GM1"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM10",
"label": {
"en": "Preset GM10",
"hi": "प्रीसेट GM10"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM2",
"label": {
"en": "Preset GM2",
"hi": "प्रीसेट GM2"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM3",
"label": {
"en": "Preset GM3",
"hi": "प्रीसेट GM3"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM4",
"label": {
"en": "Preset GM4",
"hi": "प्रीसेट GM4"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM5",
"label": {
"en": "Preset GM5",
"hi": "प्रीसेट GM5"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM6",
"label": {
"en": "Preset GM6",
"hi": "प्रीसेट GM6"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM7",
"label": {
"en": "Preset GM7",
"hi": "प्रीसेट GM7"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM8",
"label": {
"en": "Preset GM8",
"hi": "प्रीसेट GM8"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM9",
"label": {
"en": "Preset GM9",
"hi": "प्रीसेट GM9"
"en": "Espresso Brown Iris",
"hi": "डार्क ब्राउन आँखें (E9)"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW1",
"value": "GW1",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Preset GW1",
"hi": "प्रीसेट GW1"
"en": "Women Eyewear #1",
"hi": "महिला चश्मा #1"
},
"previewUrl": "https://images.unsplash.com/photo-1544005313-94ddf0286df2?w=800&auto=format&fit=crop&q=80"
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW2",
"value": "GW2",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #2",
"hi": "महिला चश्मा #2"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW3",
"value": "GW3",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #3",
"hi": "महिला चश्मा #3"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW4",
"value": "GW4",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #4",
"hi": "महिला चश्मा #4"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GW5",
"value": "GW5",
"gender": "female",
"category": "female",
"badge": "Women Glasses",
"label": {
"en": "Women Eyewear #5",
"hi": "महिला चश्मा #5"
},
"previewUrl": "https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM1",
"value": "GM1",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #1",
"hi": "पुरुष चश्मा #1"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM2",
"value": "GM2",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #2",
"hi": "पुरुष चश्मा #2"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM3",
"value": "GM3",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #3",
"hi": "पुरुष चश्मा #3"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM4",
"value": "GM4",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #4",
"hi": "पुरुष चश्मा #4"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
},
{
"id": "GM5",
"value": "GM5",
"gender": "male",
"category": "male",
"badge": "Men Glasses",
"label": {
"en": "Men Eyewear #5",
"hi": "पुरुष चश्मा #5"
},
"previewUrl": "https://images.unsplash.com/photo-1591076482161-42ce6da69f67?w=800&auto=format&fit=crop&q=80"
}
],
"maskingConfig": {
@@ -20,131 +20,195 @@
"thumbnails": [
{
"id": "F1",
"value": "F1",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F1",
"hi": "प्रीसेट F1"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F10",
"label": {
"en": "Preset F10",
"hi": "प्रीसेट F10"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F11",
"label": {
"en": "Preset F11",
"hi": "प्रीसेट F11"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F12",
"label": {
"en": "Preset F12",
"hi": "प्रीसेट F12"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F13",
"label": {
"en": "Preset F13",
"hi": "प्रीसेट F13"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F14",
"label": {
"en": "Preset F14",
"hi": "प्रीसेट F14"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F15",
"label": {
"en": "Preset F15",
"hi": "प्रीसेट F15"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F16",
"label": {
"en": "Preset F16",
"hi": "प्रीसेट F16"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F17",
"label": {
"en": "Preset F17",
"hi": "प्रीसेट F17"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F18",
"label": {
"en": "Preset F18",
"hi": "प्रीसेट F18"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F19",
"label": {
"en": "Preset F19",
"hi": "प्रीसेट F19"
"en": "Vintage Film F1 (Female)",
"hi": "विंटेज फिल्म F1 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F2",
"value": "F2",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F2",
"hi": "प्रीसेट F2"
"en": "Vintage Film F2 (Female)",
"hi": "विंटेज फिल्म F2 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F20",
"id": "F3",
"value": "F3",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F20",
"hi": "प्रीसेट F20"
"en": "Vintage Film F3 (Female)",
"hi": "विंटेज फिल्म F3 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F21",
"id": "F4",
"value": "F4",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F21",
"hi": "प्रीसेट F21"
"en": "Vintage Film F4 (Female)",
"hi": "विंटेज फिल्म F4 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F22",
"id": "F5",
"value": "F5",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F22",
"hi": "प्रीसेट F22"
"en": "Vintage Film F5 (Female)",
"hi": "विंटेज फिल्म F5 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F23",
"id": "F6",
"value": "F6",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Preset F23",
"hi": "प्रीसेट F23"
"en": "Vintage Film F6 (Female)",
"hi": "विंटेज फिल्म F6 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F7",
"value": "F7",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Vintage Film F7 (Female)",
"hi": "विंटेज फिल्म F7 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "F8",
"value": "F8",
"gender": "female",
"category": "female",
"badge": "Female",
"label": {
"en": "Vintage Film F8 (Female)",
"hi": "विंटेज फिल्म F8 (महिला)"
},
"previewUrl": "https://images.unsplash.com/photo-1534528741775-53994a69daeb?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M1",
"value": "M1",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M1 (Male)",
"hi": "विंटेज फिल्म M1 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M2",
"value": "M2",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M2 (Male)",
"hi": "विंटेज फिल्म M2 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M3",
"value": "M3",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M3 (Male)",
"hi": "विंटेज फिल्म M3 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M4",
"value": "M4",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M4 (Male)",
"hi": "विंटेज फिल्म M4 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M5",
"value": "M5",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M5 (Male)",
"hi": "विंटेज फिल्म M5 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M6",
"value": "M6",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M6 (Male)",
"hi": "विंटेज फिल्म M6 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M7",
"value": "M7",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M7 (Male)",
"hi": "विंटेज फिल्म M7 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
},
{
"id": "M8",
"value": "M8",
"gender": "male",
"category": "male",
"badge": "Male",
"label": {
"en": "Vintage Film M8 (Male)",
"hi": "विंटेज फिल्म M8 (पुरुष)"
},
"previewUrl": "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=800&auto=format&fit=crop&q=80"
}
],
"tryIt": {
+6
View File
@@ -117,6 +117,9 @@ export async function POST(req: NextRequest, { params }: { params: { toolId: str
(formData.get('dress') as string) ||
(formData.get('expression') as string) ||
'';
const gender = (formData.get('gender') as string) || '';
const category = (formData.get('category') as string) || '';
const effectId = (formData.get('effectId') 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> = {};
@@ -129,6 +132,9 @@ export async function POST(req: NextRequest, { params }: { params: { toolId: str
}
if (style) options.style = style;
if (gender) options.gender = gender;
if (category) options.category = category;
if (effectId) options.effectId = effectId;
const isTextToImage = tool.pageType === 'text-to-image' || tool.id.includes('text');
@@ -303,6 +303,12 @@ export function DynamicToolWorkspace({
formData.append('effectId', presetVal);
formData.append('colorId', presetVal);
formData.append('effect_id', presetVal);
if ((selectedThumbnail as any).gender) {
formData.append('gender', (selectedThumbnail as any).gender);
}
if ((selectedThumbnail as any).category) {
formData.append('category', (selectedThumbnail as any).category);
}
}
const res = await fetch(`/api/try/${tool.id}`, {
+150 -11
View File
@@ -1,8 +1,8 @@
'use client';
import React from 'react';
import React, { useState, useMemo } from 'react';
import { ThumbnailItem, resolveLocalised } from '@/types';
import { Check, Sparkles } from 'lucide-react';
import { Check, Sparkles, User, Users } from 'lucide-react';
interface ThumbnailsSectionProps {
thumbnails: ThumbnailItem[];
@@ -15,6 +15,18 @@ interface ThumbnailsSectionProps {
className?: string;
}
function getThumbnailGender(item: ThumbnailItem): 'female' | 'male' | 'unisex' {
if (item.gender) return item.gender.toLowerCase() as any;
if (item.category && (item.category.toLowerCase() === 'female' || item.category.toLowerCase() === 'women')) return 'female';
if (item.category && (item.category.toLowerCase() === 'male' || item.category.toLowerCase() === 'men')) return 'male';
const id = item.id.toLowerCase();
if (id.includes('female') || id.startsWith('gw') || id.includes('_f_') || (item.badge && item.badge.toLowerCase().includes('female'))) return 'female';
if (id.includes('male') || id.startsWith('gm') || id.includes('_m_') || (item.badge && item.badge.toLowerCase().includes('male'))) return 'male';
if (/^f\d+$/i.test(item.id)) return 'female';
if (/^m\d+$/i.test(item.id)) return 'male';
return 'unisex';
}
export function ThumbnailsSection({
thumbnails,
selectedId,
@@ -25,24 +37,93 @@ export function ThumbnailsSection({
variant = 'grid',
className = '',
}: ThumbnailsSectionProps) {
const [activeGender, setActiveGender] = useState<'all' | 'female' | 'male'>('all');
const { hasGenderOptions, femaleCount, maleCount, filteredThumbnails } = useMemo(() => {
let female = 0;
let male = 0;
thumbnails.forEach((t) => {
const g = getThumbnailGender(t);
if (g === 'female') female++;
if (g === 'male') male++;
});
const hasGender = female > 0 && male > 0;
const filtered = thumbnails.filter((t) => {
if (activeGender === 'all') return true;
const g = getThumbnailGender(t);
if (activeGender === 'female') return g === 'female' || g === 'unisex';
if (activeGender === 'male') return g === 'male' || g === 'unisex';
return true;
});
return {
hasGenderOptions: hasGender,
femaleCount: female,
maleCount: male,
filteredThumbnails: filtered,
};
}, [thumbnails, activeGender]);
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">
<div className={`space-y-3 ${className}`}>
<div className="flex flex-wrap items-center justify-between gap-2 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 className="flex items-center gap-2">
{hasGenderOptions && (
<div className="flex items-center gap-1 p-0.5 rounded-lg bg-paper-2 border border-rule text-[11px] font-sans">
<button
type="button"
onClick={() => setActiveGender('all')}
className={`px-2 py-0.5 rounded-md transition-colors cursor-pointer ${
activeGender === 'all'
? 'bg-ink text-white font-semibold'
: 'text-ink-2 hover:text-ink'
}`}
>
All ({thumbnails.length})
</button>
<button
type="button"
onClick={() => setActiveGender('female')}
className={`px-2 py-0.5 rounded-md transition-colors cursor-pointer ${
activeGender === 'female'
? 'bg-ink text-white font-semibold'
: 'text-ink-2 hover:text-ink'
}`}
>
Female ({femaleCount})
</button>
<button
type="button"
onClick={() => setActiveGender('male')}
className={`px-2 py-0.5 rounded-md transition-colors cursor-pointer ${
activeGender === 'male'
? 'bg-ink text-white font-semibold'
: 'text-ink-2 hover:text-ink'
}`}
>
Male ({maleCount})
</button>
</div>
)}
<span className="text-muted text-[11px]">{filteredThumbnails.length} presets</span>
</div>
</div>
<div className="flex items-center gap-3 overflow-x-auto no-scrollbar py-1">
{thumbnails.map((item) => {
{filteredThumbnails.map((item) => {
const isSelected = selectedId === item.id;
const label = resolveLocalised(item.label, locale);
const gender = getThumbnailGender(item);
const badgeText = item.badge || (gender === 'female' ? 'Female' : gender === 'male' ? 'Male' : undefined);
return (
<button
@@ -62,6 +143,17 @@ export function ThumbnailsSection({
alt={label}
className="w-full h-full object-cover transition-transform duration-300 group-hover:scale-105"
/>
{badgeText && (
<span className={`absolute bottom-1 left-1 px-1.5 py-0.2 rounded text-[8px] font-bold tracking-tight shadow-xs ${
gender === 'female'
? 'bg-pink-600 text-white'
: gender === 'male'
? 'bg-sky-600 text-white'
: 'bg-ink/80 text-white'
}`}>
{badgeText}
</span>
)}
{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">
@@ -86,7 +178,7 @@ export function ThumbnailsSection({
<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="text-center max-w-2xl mx-auto space-y-3">
<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>
@@ -97,14 +189,55 @@ export function ThumbnailsSection({
<p className="text-xs sm:text-sm text-ink-2 font-body leading-relaxed">
{subtitle}
</p>
{/* Gender Filter Pills (if applicable) */}
{hasGenderOptions && (
<div className="inline-flex items-center gap-1.5 p-1 rounded-xl bg-paper-hi border border-rule shadow-xs text-xs font-sans mt-2">
<button
type="button"
onClick={() => setActiveGender('all')}
className={`px-3.5 py-1.5 rounded-lg transition-all cursor-pointer font-medium ${
activeGender === 'all'
? 'bg-ink text-white font-semibold shadow-xs'
: 'text-ink-2 hover:text-ink'
}`}
>
All Presets ({thumbnails.length})
</button>
<button
type="button"
onClick={() => setActiveGender('female')}
className={`px-3.5 py-1.5 rounded-lg transition-all cursor-pointer font-medium ${
activeGender === 'female'
? 'bg-ink text-white font-semibold shadow-xs'
: 'text-ink-2 hover:text-ink'
}`}
>
Female Styles ({femaleCount})
</button>
<button
type="button"
onClick={() => setActiveGender('male')}
className={`px-3.5 py-1.5 rounded-lg transition-all cursor-pointer font-medium ${
activeGender === 'male'
? 'bg-ink text-white font-semibold shadow-xs'
: 'text-ink-2 hover:text-ink'
}`}
>
Male Styles ({maleCount})
</button>
</div>
)}
</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) => {
{filteredThumbnails.map((item) => {
const isSelected = selectedId === item.id;
const label = resolveLocalised(item.label, locale);
const desc = item.description ? resolveLocalised(item.description, locale) : '';
const gender = getThumbnailGender(item);
const badgeText = item.badge || (gender === 'female' ? 'Female' : gender === 'male' ? 'Male' : undefined);
return (
<button
@@ -125,9 +258,15 @@ export function ThumbnailsSection({
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}
{badgeText && (
<span className={`absolute top-2 left-2 px-2 py-0.5 rounded-full text-[9px] font-bold uppercase tracking-wider shadow-xs ${
gender === 'female'
? 'bg-pink-600 text-white'
: gender === 'male'
? 'bg-sky-600 text-white'
: 'bg-ink/80 text-white'
}`}>
{badgeText}
</span>
)}
{isSelected && (
+46 -1
View File
@@ -188,9 +188,54 @@ export async function executeBackendTryIt(
// Ensure effectId / colorId / style_id / artid / dress / expression synchronization if provided in options
const selectedEffect = options.style || options.effectId || options.colorId || options.effect_id || options.artId || options.artid || options.dress || options.expression || options.cartoonId;
if (selectedEffect) {
let cleanEffectId = String(selectedEffect);
let detectedGender = options.gender || options.category || '';
// Deconstruct gender prefix (e.g. female_ComicCover1 -> gender: female, effectId: ComicCover1)
if (/^(female|women)_/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'female';
cleanEffectId = cleanEffectId.replace(/^(female|women)_/i, '');
} else if (/^(male|men)_/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'male';
cleanEffectId = cleanEffectId.replace(/^(male|men)_/i, '');
} else if (/^Female_/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'Female';
cleanEffectId = cleanEffectId.replace(/^Female_/i, '');
} else if (/^Male_/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'Male';
cleanEffectId = cleanEffectId.replace(/^Male_/i, '');
} else if (/^F\d+$/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'female';
} else if (/^M\d+$/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'male';
} else if (/^GW\d+$/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'female';
} else if (/^GM\d+$/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'male';
} else if (/_F_\d+/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'female';
} else if (/_M_\d+/i.test(cleanEffectId)) {
detectedGender = detectedGender || 'male';
}
// Set gender or category if the endpoint supports it
if (detectedGender) {
const genderParam = endpoint.params.find((p) => p.name === 'gender');
if (genderParam && !formData.has('gender')) {
const casing = (genderParam.default?.toLowerCase() === 'female' || genderParam.description?.includes("'female'"))
? detectedGender.toLowerCase()
: (detectedGender.charAt(0).toUpperCase() + detectedGender.slice(1).toLowerCase());
formData.append('gender', casing);
}
const catParam = endpoint.params.find((p) => p.name === 'category');
if (catParam && !formData.has('category')) {
formData.append('category', detectedGender.toLowerCase());
}
}
for (const targetKey of ['colorId', 'effectId', 'effect_id', 'style_id', 'artId', 'artid', 'cartoonId', 'dress', 'expression', 'style', 'option']) {
if (endpoint.params.some((p) => p.name === targetKey) && !formData.has(targetKey)) {
formData.append(targetKey, String(selectedEffect));
formData.append(targetKey, cleanEffectId);
}
}
}
+3
View File
@@ -179,6 +179,9 @@ export interface ThumbnailItem {
value: string;
description?: Localised;
badge?: string;
gender?: string;
category?: string;
effectId?: string;
}
export interface MaskingConfig {