Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
730 lines (680 loc) · 48.8 KB
/
Copy pathindex.html
File metadata and controls
730 lines (680 loc) · 48.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LayerLens | 3D Model Photo Optimizer</title>
<meta name="description" content="Prepare 3D model photos for Printables, MakerWorld, Thangs, Snapmaker Spaces, and Cults3D with batch crop, brand kits, custom backgrounds, and text-detection tools.">
<meta name="keywords" content="LayerLens, 3D model photos, Printables, MakerWorld, Thangs, Snapmaker Spaces, Cults3D, image cropper, photo optimizer, STL listing photos">
<meta name="author" content="TechJeeper Designs">
<meta name="creator" content="TechJeeper Designs">
<meta name="publisher" content="TechJeeper Designs">
<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1">
<meta name="googlebot" content="index, follow">
<meta name="theme-color" content="#030712">
<meta name="color-scheme" content="dark">
<meta name="application-name" content="LayerLens">
<meta name="apple-mobile-web-app-title" content="LayerLens">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="canonical" href="https://layerlens.techjeeper.com/">
<!-- Favicons -->
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<link rel="mask-icon" href="/favicon.svg" color="#0f766e">
<!-- Open Graph -->
<meta property="og:type" content="website">
<meta property="og:locale" content="en_US">
<meta property="og:site_name" content="LayerLens">
<meta property="og:url" content="https://layerlens.techjeeper.com/">
<meta property="og:title" content="LayerLens | 3D Model Photo Optimizer">
<meta property="og:description" content="Optimize 3D model photos for Printables, MakerWorld, Thangs, Snapmaker Spaces, and Cults3D.">
<meta property="og:image" content="https://layerlens.techjeeper.com/og-image.png">
<meta property="og:image:secure_url" content="https://layerlens.techjeeper.com/og-image.png">
<meta property="og:image:type" content="image/png">
<meta property="og:image:width" content="1200">
<meta property="og:image:height" content="630">
<meta property="og:image:alt" content="LayerLens — 3D model photo optimizer for marketplace listings">
<!-- Twitter / X -->
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="LayerLens | 3D Model Photo Optimizer">
<meta name="twitter:description" content="Optimize 3D model photos for Printables, MakerWorld, Thangs, Snapmaker Spaces, and Cults3D.">
<meta name="twitter:image" content="https://layerlens.techjeeper.com/og-image.png">
<meta name="twitter:image:alt" content="LayerLens — 3D model photo optimizer for marketplace listings">
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
<!-- Tesseract.js for Text Detection entirely in-browser -->
<script src="https://cdn.jsdelivr.net/npm/tesseract.js@5/dist/tesseract.min.js"></script>
<!-- JSZip and FileSaver for bundling images into a downloadable archive -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.10.1/jszip.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.5/FileSaver.min.js"></script>
<script data-goatcounter="https://layerlens.goatcounter.com/count"
async src="//gc.zgo.at/count.js"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
gray: {
850: '#1f2937',
900: '#111827',
950: '#030712'
},
brand: {
makerworld: '#0f766e',
thangs: '#7c3aed',
printables: '#c2410c',
snapmaker: '#0891b2',
cults3d: '#db2777'
}
}
}
}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebApplication",
"name": "LayerLens",
"url": "https://layerlens.techjeeper.com/",
"applicationCategory": "MultimediaApplication",
"operatingSystem": "Any",
"browserRequirements": "Requires JavaScript",
"inLanguage": "en",
"isAccessibleForFree": true,
"description": "A browser-based tool for preparing 3D model photos for Printables, MakerWorld, Thangs, Snapmaker Spaces, and Cults3D.",
"image": "https://layerlens.techjeeper.com/og-image.png",
"screenshot": "https://layerlens.techjeeper.com/og-image.png",
"keywords": [
"3D model photos",
"Printables",
"MakerWorld",
"Thangs",
"Snapmaker Spaces",
"Cults3D",
"image cropper",
"photo optimizer"
],
"creator": {
"@type": "Organization",
"name": "TechJeeper Designs",
"url": "https://techjeeper.com"
},
"publisher": {
"@type": "Organization",
"name": "TechJeeper Designs",
"url": "https://techjeeper.com"
},
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
}
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "LayerLens",
"url": "https://layerlens.techjeeper.com/",
"description": "3D model photo optimizer for marketplace listings.",
"publisher": {
"@type": "Organization",
"name": "TechJeeper Designs",
"url": "https://techjeeper.com"
}
}
</script>
<style>
/* Custom scrollbar for dark theme */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #1f2937; }
::-webkit-scrollbar-thumb { background: #4b5563; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #6b7280; }
/* Custom Range Slider for better cross-browser look */
input[type=range] {
-webkit-appearance: none;
background: transparent;
}
input[type=range]::-webkit-slider-thumb {
-webkit-appearance: none;
height: 16px; width: 16px;
border-radius: 50%;
background: #0f766e;
cursor: pointer;
margin-top: -6px;
box-shadow: 0 0 5px rgba(0,0,0,0.5);
}
input[type=range]::-webkit-slider-runnable-track {
width: 100%; height: 4px;
cursor: pointer;
background: #4b5563;
border-radius: 2px;
}
/* Loading Spinner Animation */
.spinner {
border: 3px solid rgba(255,255,255,0.1);
border-left-color: #ffffff;
border-radius: 50%;
width: 20px; height: 20px;
animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.filmstrip-item.active {
outline: 2px solid #0f766e;
outline-offset: 2px;
}
.drop-active {
border-color: #14b8a6 !important;
background-color: rgba(15, 118, 110, 0.15);
}
</style>
<script src="/app.js" defer></script>
</head>
<body class="bg-gray-950 text-gray-100 font-sans min-h-screen flex flex-col">
<header class="bg-gray-900 border-b border-gray-800 p-3 sm:p-4 shadow-md z-10 sticky top-0">
<div class="max-w-[1600px] mx-auto flex flex-wrap justify-between items-center gap-3">
<div class="flex items-center gap-3 min-w-0">
<img src="/favicon.svg" alt="" width="32" height="32" class="w-8 h-8 rounded-lg shrink-0" decoding="async">
<p class="text-xl font-bold tracking-wide">LayerLens</p>
<label class="hidden sm:flex items-center gap-2 ml-2 min-w-0">
<span class="text-xs text-gray-500 shrink-0">Project</span>
<input id="projectName" type="text" value="Untitled Project" maxlength="80"
class="bg-gray-950 border border-gray-700 rounded-lg px-2.5 py-1.5 text-sm text-white outline-none focus:border-teal-500 w-40 lg:w-56 truncate"
aria-label="Project name">
</label>
</div>
<div class="flex items-center gap-2 flex-wrap justify-end">
<button id="btnSaveProject" type="button" class="bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white px-3 py-2 rounded-lg text-xs sm:text-sm transition-colors" title="Save project">
<i class="fa-solid fa-floppy-disk"></i><span class="hidden sm:inline ml-2">Save</span>
</button>
<button id="btnLoadProject" type="button" class="bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white px-3 py-2 rounded-lg text-xs sm:text-sm transition-colors" title="Load project">
<i class="fa-solid fa-folder-open"></i><span class="hidden sm:inline ml-2">Load</span>
</button>
<button id="btnExportProjectJson" type="button" class="hidden sm:inline-flex bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white px-3 py-2 rounded-lg text-xs sm:text-sm transition-colors items-center" title="Download project JSON">
<i class="fa-solid fa-file-export"></i><span class="ml-2">JSON</span>
</button>
<button id="btnImportProjectJson" type="button" class="hidden sm:inline-flex bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white px-3 py-2 rounded-lg text-xs sm:text-sm transition-colors items-center" title="Upload project JSON">
<i class="fa-solid fa-file-import"></i><span class="ml-2">Import</span>
</button>
<input type="file" id="projectJsonInput" accept="application/json,.json" class="hidden">
<button id="btnDownloadHeader" data-goatcounter-click="download-zip" class="hidden bg-teal-700 hover:bg-teal-600 text-white px-4 py-2 sm:px-5 rounded-lg font-semibold shadow-lg transition-all flex items-center gap-2 text-sm sm:text-base">
<i class="fa-solid fa-download"></i> <span class="hidden sm:inline">Download Zip Bundle</span><span class="sm:hidden">Zip</span>
</button>
</div>
</div>
<label class="sm:hidden flex items-center gap-2 mt-2 max-w-[1600px] mx-auto px-0">
<span class="text-xs text-gray-500 shrink-0">Project</span>
<input id="projectNameMobile" type="text" value="Untitled Project" maxlength="80"
class="flex-1 bg-gray-950 border border-gray-700 rounded-lg px-2.5 py-1.5 text-sm text-white outline-none focus:border-teal-500"
aria-label="Project name">
</label>
</header>
<main class="flex-grow flex flex-col items-center justify-center p-4 sm:p-6 relative w-full max-w-[1600px] mx-auto">
<section id="heroSection" class="w-full max-w-4xl text-center pt-8 pb-10 sm:pt-14 sm:pb-12">
<p class="text-sm font-semibold uppercase tracking-[0.2em] text-teal-400 mb-4">Batch photos, every platform</p>
<h1 class="text-3xl sm:text-5xl font-bold tracking-tight text-white">Perfect your 3D model photos for every listing.</h1>
<p class="max-w-2xl mx-auto mt-5 text-base sm:text-lg leading-relaxed text-gray-400">Upload one or many images and create platform-ready versions for Printables, MakerWorld, Thangs, Snapmaker Spaces, and Cults3D. Crop, brand, adjust color, and download every export in one ZIP.</p>
<div class="mt-7 flex flex-wrap justify-center gap-3 text-sm text-gray-300">
<span class="rounded-full border border-gray-700 bg-gray-900 px-3 py-1.5"><i class="fa-solid fa-images text-teal-400 mr-2"></i>Multi-image batches</span>
<span class="rounded-full border border-gray-700 bg-gray-900 px-3 py-1.5"><i class="fa-solid fa-wand-magic-sparkles text-teal-400 mr-2"></i>Brand kits & watermarks</span>
<span class="rounded-full border border-gray-700 bg-gray-900 px-3 py-1.5"><i class="fa-solid fa-file-zipper text-teal-400 mr-2"></i>ZIP export</span>
</div>
<a href="#uploadScreen" class="inline-flex items-center gap-2 mt-8 bg-teal-700 hover:bg-teal-600 text-white px-5 py-3 rounded-lg font-semibold shadow-lg transition-colors">
Optimize photos <i class="fa-solid fa-arrow-down"></i>
</a>
</section>
<!-- Upload Screen -->
<div id="uploadScreen" data-goatcounter-click="upload-image" class="w-full max-w-3xl bg-gray-900 border-2 border-dashed border-gray-700 rounded-2xl p-8 sm:p-12 text-center transition-all hover:border-teal-500 cursor-pointer group flex flex-col items-center justify-center min-h-[400px]">
<input type="file" id="fileInput" accept="image/*" multiple class="hidden">
<div class="bg-gray-800 p-6 rounded-full mb-6 group-hover:scale-110 group-hover:bg-teal-900/50 transition-all">
<i class="fa-solid fa-cloud-arrow-up text-5xl text-teal-400"></i>
</div>
<h2 class="text-xl sm:text-2xl font-bold mb-2">Upload your listing photos</h2>
<p class="text-gray-400 mb-2 text-sm sm:text-base">Drag and drop images here, click to browse, or paste from clipboard.</p>
<p class="text-gray-500 mb-6 text-xs sm:text-sm">Select multiple files for a batch.</p>
<div class="text-xs sm:text-sm text-gray-500 flex flex-col sm:flex-row gap-2 sm:gap-4 justify-center mt-4">
<span class="flex items-center justify-center gap-1"><i class="fa-solid fa-check text-green-500"></i> Auto-resizing</span>
<span class="flex items-center justify-center gap-1"><i class="fa-solid fa-check text-green-500"></i> Per-image crop memory</span>
<span class="flex items-center justify-center gap-1"><i class="fa-solid fa-check text-green-500"></i> Text Detection (OCR)</span>
</div>
<div class="mt-6 flex flex-wrap justify-center gap-2">
<button type="button" id="btnLoadProjectUpload" class="bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white px-4 py-2 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-folder-open mr-2"></i>Load saved project
</button>
<button type="button" id="btnImportProjectJsonUpload" class="bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white px-4 py-2 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-file-import mr-2"></i>Import JSON
</button>
</div>
</div>
<div id="editorScreen" class="w-full h-full flex flex-col gap-4 hidden">
<!-- Filmstrip -->
<div id="filmstripBar" class="w-full bg-gray-900 rounded-xl border border-gray-800 p-3 flex flex-col sm:flex-row gap-3 items-stretch sm:items-center">
<div class="flex items-center justify-between gap-2 shrink-0">
<span class="text-sm font-semibold text-gray-300"><i class="fa-solid fa-film text-teal-400 mr-2"></i>Batch</span>
<span id="batchCount" class="text-xs text-gray-500">0 images</span>
</div>
<div id="filmstrip" class="flex gap-2 overflow-x-auto flex-grow py-1 min-h-[72px] items-center"></div>
<div class="flex gap-2 shrink-0">
<button type="button" id="btnAddImages" class="bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white px-3 py-2 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-plus mr-1"></i> Add
</button>
<button type="button" id="btnRemoveImage" class="bg-gray-800 hover:bg-red-900/40 border border-gray-700 text-white px-3 py-2 rounded-lg text-sm transition-colors" title="Remove active image">
<i class="fa-solid fa-trash"></i>
</button>
</div>
</div>
<div class="w-full flex flex-col lg:flex-row gap-6">
<!-- Controls Sidebar -->
<aside class="w-full lg:w-80 bg-gray-900 rounded-xl border border-gray-800 p-5 flex flex-col gap-6 shadow-xl lg:overflow-y-auto lg:h-[calc(100vh-140px)] lg:sticky top-28 shrink-0">
<div class="flex justify-between items-center border-b border-gray-800 pb-4">
<h3 class="text-lg font-bold"><i class="fa-solid fa-sliders text-teal-400 mr-2"></i> Adjustments</h3>
<button id="btnReset" class="text-xs bg-gray-800 hover:bg-gray-700 px-3 py-1 rounded text-gray-300 transition-colors">Reset</button>
</div>
<div id="cropReferencePanel" class="flex flex-col gap-2">
<div class="flex justify-between items-center">
<label class="text-sm font-semibold text-gray-300" for="canvas-reference">Crop reference</label>
<span class="text-xs text-gray-500">Drag to reposition</span>
</div>
<canvas id="canvas-reference" width="800" height="600" aria-label="Draggable crop reference preview" class="w-full aspect-[4/3] rounded border border-gray-700 bg-black cursor-grab touch-none"></canvas>
</div>
<!-- Global Fit Mode -->
<div class="flex flex-col gap-2">
<label class="text-sm font-semibold text-gray-300">Image Fit</label>
<div class="flex bg-gray-800 rounded-lg p-1">
<button id="btnFitContain" class="flex-1 py-1.5 text-sm rounded bg-teal-700 text-white shadow font-medium transition-colors">Contain (Pad)</button>
<button id="btnFitCover" class="flex-1 py-1.5 text-sm rounded text-gray-400 hover:text-white transition-colors">Cover (Crop)</button>
</div>
</div>
<button type="button" id="btnAutoCrop" class="w-full bg-teal-900/50 hover:bg-teal-800/60 border border-teal-800 text-teal-100 py-2 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-crosshairs mr-2"></i>Auto-crop subject
</button>
<!-- Background Settings (Only relevant for Contain) -->
<div id="bgSettingsPanel" class="flex flex-col gap-4 bg-gray-850 p-4 rounded-lg border border-gray-800">
<label class="text-sm font-semibold text-gray-300">Background Style</label>
<select id="bgType" class="bg-gray-950 border border-gray-700 text-sm rounded focus:ring-teal-500 focus:border-teal-500 block w-full p-2.5 text-white outline-none">
<option value="blur">Blurred Original</option>
<option value="custom">Custom Image</option>
<option value="color">Solid Color</option>
<option value="gradient">Gradient</option>
<option value="texture">Texture</option>
</select>
<div id="bgCustomImageWrap" class="hidden flex flex-col gap-2">
<input type="file" id="bgCustomImageInput" accept="image/*" class="hidden">
<div class="flex items-center gap-2">
<button type="button" id="btnBgCustomImage" class="flex-1 bg-gray-950 hover:bg-gray-900 border border-gray-700 text-white py-2 px-3 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-image mr-2"></i>Choose background
</button>
<button type="button" id="btnClearBgCustomImage" class="hidden bg-gray-800 hover:bg-gray-700 border border-gray-700 text-gray-300 py-2 px-3 rounded-lg text-sm transition-colors" title="Clear custom background">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
<p id="bgCustomImageName" class="text-xs text-gray-500 truncate">No background image selected</p>
</div>
<div id="bgColorPickerWrap" class="hidden flex items-center justify-between">
<span class="text-sm text-gray-400">Color</span>
<input type="color" id="bgColor" value="#111827" class="h-8 w-14 rounded cursor-pointer bg-transparent border-0 p-0">
</div>
<div id="bgGradientWrap" class="hidden flex flex-col gap-3">
<div class="flex items-center justify-between">
<label for="bgGradientStart" class="text-sm text-gray-400">Start Color</label>
<input type="color" id="bgGradientStart" value="#4c1d95" class="h-8 w-14 rounded cursor-pointer bg-transparent border-0 p-0">
</div>
<div class="flex items-center justify-between">
<label for="bgGradientEnd" class="text-sm text-gray-400">End Color</label>
<input type="color" id="bgGradientEnd" value="#f97316" class="h-8 w-14 rounded cursor-pointer bg-transparent border-0 p-0">
</div>
<label for="bgGradientDirection" class="text-sm text-gray-400">Direction</label>
<select id="bgGradientDirection" class="bg-gray-950 border border-gray-700 text-sm rounded focus:ring-teal-500 focus:border-teal-500 block w-full p-2.5 text-white outline-none">
<option value="diagonal">Top left to bottom right</option>
<option value="horizontal">Left to right</option>
<option value="vertical">Top to bottom</option>
<option value="diagonal-reverse">Bottom left to top right</option>
</select>
</div>
<div id="bgTextureWrap" class="hidden flex flex-col gap-1">
<label for="bgTexture" class="text-sm text-gray-400">Texture</label>
<select id="bgTexture" class="bg-gray-950 border border-gray-700 text-sm rounded focus:ring-teal-500 focus:border-teal-500 block w-full p-2.5 text-white outline-none">
<option value="texture_dot">Dot Matrix</option>
<option value="texture_line">Diagonal Lines</option>
<option value="texture_grid">Technical Grid</option>
<option value="texture_crosshatch">Crosshatch</option>
<option value="texture_checkerboard">Checkerboard</option>
<option value="texture_wave">Ocean Waves</option>
<option value="texture_hex">Hexagon Grid</option>
<option value="texture_brick">Brickwork</option>
<option value="texture_triangle">Triangles</option>
<option value="texture_plaid">Plaid</option>
<option value="texture_star">Stars</option>
<option value="texture_circuit">Circuit Board</option>
<option value="texture_topography">Topographic Lines</option>
<option value="texture_confetti">Confetti</option>
</select>
<div class="mt-3 flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<label for="bgTextureScale">Texture Scale</label>
<span id="textureScaleVal">1.0x</span>
</div>
<input type="range" id="bgTextureScale" min="0.5" max="3" step="0.1" value="1" class="w-full">
</div>
<div class="mt-3 flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<label for="bgTextureBlur">Texture Blur</label>
<span id="textureBlurVal">0px</span>
</div>
<input type="range" id="bgTextureBlur" min="0" max="10" step="0.5" value="0" class="w-full">
</div>
<div class="mt-3 flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<label for="bgTextureBrightness">Texture Brightness</label>
<span id="textureBrightnessVal">1.0x</span>
</div>
<input type="range" id="bgTextureBrightness" min="0" max="2" step="0.1" value="1" class="w-full">
</div>
<div class="mt-3 flex items-center justify-between">
<label for="bgTextureColor" class="text-sm text-gray-400">Texture Tint</label>
<input type="color" id="bgTextureColor" value="#ffffff" class="h-8 w-14 rounded cursor-pointer bg-transparent border-0 p-0">
</div>
</div>
<div id="bgBlurWrap" class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Blur Intensity</span>
<span id="blurVal">20px</span>
</div>
<input type="range" id="bgBlur" min="0" max="50" value="20" class="w-full">
</div>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Edge Softness</span>
<span id="edgeSoftnessVal">0px</span>
</div>
<input type="range" id="edgeSoftness" min="0" max="100" value="0" class="w-full">
</div>
</div>
<div id="globalTransformPanel" class="flex flex-col gap-5 border-t border-gray-800 pt-5">
<label class="text-sm font-semibold text-gray-300">Transform Image</label>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Zoom</span>
<span id="zoomVal">1.0x</span>
</div>
<input type="range" id="zoomCtrl" min="0.5" max="3" step="0.05" value="1" class="w-full">
</div>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Pan X</span>
</div>
<input type="range" id="panXCtrl" min="-100" max="100" value="0" class="w-full">
</div>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Pan Y</span>
</div>
<input type="range" id="panYCtrl" min="-100" max="100" value="0" class="w-full">
</div>
</div>
<!-- Color / Lighting -->
<div class="flex flex-col gap-4 border-t border-gray-800 pt-5">
<label class="text-sm font-semibold text-gray-300">Color & lighting</label>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Exposure</span>
<span id="exposureVal">0</span>
</div>
<input type="range" id="exposureCtrl" min="-50" max="50" value="0" class="w-full">
</div>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Contrast</span>
<span id="contrastVal">0</span>
</div>
<input type="range" id="contrastCtrl" min="-50" max="50" value="0" class="w-full">
</div>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Temperature</span>
<span id="temperatureVal">0</span>
</div>
<input type="range" id="temperatureCtrl" min="-50" max="50" value="0" class="w-full">
</div>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Vignette</span>
<span id="vignetteVal">0</span>
</div>
<input type="range" id="vignetteCtrl" min="0" max="100" value="0" class="w-full">
</div>
</div>
<!-- Platform presets / logo -->
<div class="flex flex-col gap-4 border-t border-gray-800 pt-5">
<label class="text-sm font-semibold text-gray-300">Platform presets</label>
<label class="flex items-center justify-between gap-3 text-sm text-gray-300 cursor-pointer">
<span>Safe-margin overlay</span>
<input type="checkbox" id="safeMarginToggle" class="w-4 h-4 accent-teal-600">
</label>
<div class="flex flex-col gap-2">
<input type="file" id="logoInput" accept="image/*" class="hidden">
<div class="flex items-center gap-2">
<button type="button" id="btnLogoUpload" class="flex-1 bg-gray-950 hover:bg-gray-900 border border-gray-700 text-white py-2 px-3 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-stamp mr-2"></i>Logo watermark
</button>
<button type="button" id="btnClearLogo" class="hidden bg-gray-800 hover:bg-gray-700 border border-gray-700 text-gray-300 py-2 px-3 rounded-lg text-sm transition-colors" title="Clear logo">
<i class="fa-solid fa-xmark"></i>
</button>
</div>
<p id="logoName" class="text-xs text-gray-500 truncate">No logo selected</p>
</div>
<div id="logoControls" class="hidden flex flex-col gap-3">
<label for="logoPosition" class="text-xs text-gray-400">Position</label>
<select id="logoPosition" class="bg-gray-950 border border-gray-700 text-sm rounded block w-full p-2.5 text-white outline-none">
<option value="bottom-right">Bottom right</option>
<option value="bottom-left">Bottom left</option>
<option value="top-right">Top right</option>
<option value="top-left">Top left</option>
<option value="center">Center</option>
</select>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Scale</span>
<span id="logoScaleVal">15%</span>
</div>
<input type="range" id="logoScale" min="5" max="40" value="15" class="w-full">
</div>
<div class="flex flex-col gap-1">
<div class="flex justify-between text-xs text-gray-400">
<span>Opacity</span>
<span id="logoOpacityVal">70%</span>
</div>
<input type="range" id="logoOpacity" min="10" max="100" value="70" class="w-full">
</div>
</div>
</div>
<!-- Brand kit -->
<div class="flex flex-col gap-3 border-t border-gray-800 pt-5">
<label class="text-sm font-semibold text-gray-300">Brand kit</label>
<div class="grid grid-cols-2 gap-2">
<button type="button" id="btnSaveBrandKit" class="bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white py-2 rounded-lg text-xs transition-colors">
<i class="fa-solid fa-bookmark mr-1"></i> Save kit
</button>
<button type="button" id="btnApplyBrandKit" class="bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white py-2 rounded-lg text-xs transition-colors">
<i class="fa-solid fa-paint-roller mr-1"></i> Apply kit
</button>
</div>
</div>
<div id="coverModeHint" class="hidden border-t border-gray-800 pt-5 text-sm text-gray-400 leading-relaxed">
<p class="font-semibold text-gray-300 mb-1"><i class="fa-solid fa-crop text-teal-400 mr-2"></i>Per-platform crop</p>
<p>Cover mode is on. Use each service card to zoom, drag to re-focus, and pan that export independently. Crops are remembered per image.</p>
</div>
<!-- Listing checklist -->
<div class="flex flex-col gap-3 border-t border-gray-800 pt-5">
<label class="text-sm font-semibold text-gray-300"><i class="fa-solid fa-list-check text-teal-400 mr-2"></i>Listing checklist</label>
<ul id="listingChecklist" class="text-xs text-gray-400 space-y-2 leading-relaxed">
<li class="flex gap-2"><i class="fa-solid fa-circle-info text-teal-500 mt-0.5"></i><span><strong class="text-gray-300">Printables:</strong> Prefer a clean 4:3 cover shot that sells the model.</span></li>
<li class="flex gap-2"><i class="fa-solid fa-circle-info text-teal-500 mt-0.5"></i><span><strong class="text-gray-300">MakerWorld:</strong> Landscape or portrait 4:3/3:4; keep subject large in frame.</span></li>
<li class="flex gap-2"><i class="fa-solid fa-circle-info text-teal-500 mt-0.5"></i><span><strong class="text-gray-300">Thangs:</strong> Tall 9:11 crops; avoid tiny subjects.</span></li>
<li class="flex gap-2"><i class="fa-solid fa-circle-info text-teal-500 mt-0.5"></i><span><strong class="text-gray-300">Snapmaker:</strong> No promotional text on cover — OCR watches for this.</span></li>
<li class="flex gap-2"><i class="fa-solid fa-circle-info text-teal-500 mt-0.5"></i><span><strong class="text-gray-300">Cults3D:</strong> Square, max 8000×8000 and 10 MB.</span></li>
</ul>
<div class="bg-gray-850 border border-gray-800 rounded-lg p-3 space-y-2 text-xs">
<div class="flex justify-between gap-2">
<span class="text-gray-400">Cults size (active)</span>
<span id="cultsSizeEstimate" class="text-pink-300 font-semibold">—</span>
</div>
<div class="flex justify-between gap-2">
<span class="text-gray-400">Snapmaker OCR</span>
<span id="ocrChecklistSummary" class="text-gray-300 font-semibold">Waiting…</span>
</div>
</div>
</div>
<div class="mt-auto pt-6 flex flex-col gap-2">
<button id="btnUploadNew" data-goatcounter-click="upload-new-image" class="w-full bg-gray-800 hover:bg-gray-700 border border-gray-700 text-white py-2 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-image mr-2"></i> Add / replace images
</button>
<button id="btnClearProject" type="button" class="w-full bg-gray-800 hover:bg-gray-700 border border-gray-700 text-gray-300 py-2 rounded-lg text-sm transition-colors">
<i class="fa-solid fa-rotate-left mr-2"></i> Start over
</button>
</div>
</aside>
<div class="flex-grow grid grid-cols-1 md:grid-cols-2 gap-6 pb-10">
<!-- Printables Card -->
<div class="bg-gray-900 rounded-xl border border-gray-800 overflow-hidden shadow-lg flex flex-col h-fit" data-platform-card="printables">
<div class="p-3 border-b border-gray-800 flex justify-between items-center bg-gray-850 gap-2">
<div class="flex items-center gap-2 min-w-0">
<div class="w-3 h-3 rounded-full bg-brand-printables shrink-0"></div>
<span class="font-bold">Printables</span>
</div>
<div class="flex items-center gap-2 shrink-0">
<span class="text-xs bg-gray-700 px-2 py-1 rounded text-gray-300">4:3 landscape</span>
<a href="https://www.printables.com/model/create" target="_blank" rel="noopener noreferrer" class="text-xs text-teal-400 hover:text-teal-300" title="Open Printables upload">
<i class="fa-solid fa-arrow-up-right-from-square"></i>
</a>
</div>
</div>
<div class="p-4 flex-grow flex items-center justify-center bg-gray-950">
<canvas id="canvas-printables" data-platform-canvas="printables" class="max-w-full h-auto rounded shadow-md w-full aspect-[4/3] bg-black touch-none"></canvas>
</div>
<div class="platform-crop-controls hidden border-t border-gray-800 p-4 bg-gray-850/60 flex flex-col gap-3" data-platform-controls="printables"></div>
</div>
<!-- MakerWorld Card -->
<div class="bg-gray-900 rounded-xl border border-gray-800 overflow-hidden shadow-lg flex flex-col h-fit" data-platform-card="makerworld">
<div class="p-3 border-b border-gray-800 flex justify-between items-center bg-gray-850 gap-2">
<div class="flex items-center gap-2 min-w-0">
<div class="w-3 h-3 rounded-full bg-brand-makerworld shrink-0"></div>
<span class="font-bold">MakerWorld</span>
</div>
<div class="flex items-center gap-2 flex-wrap justify-end">
<span id="makerworld-ratio" class="text-xs bg-gray-700 px-2 py-1 rounded text-gray-300">4:3 landscape</span>
<div class="flex bg-gray-800 rounded p-0.5" aria-label="MakerWorld orientation">
<button id="btnMakerworldLandscape" class="px-2 py-1 text-xs rounded bg-teal-700 text-white transition-colors">Landscape</button>
<button id="btnMakerworldPortrait" class="px-2 py-1 text-xs rounded text-gray-400 hover:text-white transition-colors">Portrait</button>
</div>
<a href="https://makerworld.com/en/my/models/publish" target="_blank" rel="noopener noreferrer" class="text-xs text-teal-400 hover:text-teal-300" title="Open MakerWorld upload">
<i class="fa-solid fa-arrow-up-right-from-square"></i>
</a>
</div>
</div>
<div class="p-4 flex-grow flex items-center justify-center bg-gray-950">
<canvas id="canvas-makerworld" data-platform-canvas="makerworld" class="max-w-full h-auto rounded shadow-md w-full aspect-[4/3] bg-black touch-none"></canvas>
</div>
<div class="platform-crop-controls hidden border-t border-gray-800 p-4 bg-gray-850/60 flex flex-col gap-3" data-platform-controls="makerworld"></div>
</div>
<!-- Thangs Card -->
<div class="bg-gray-900 rounded-xl border border-gray-800 overflow-hidden shadow-lg flex flex-col h-fit" data-platform-card="thangs">
<div class="p-3 border-b border-gray-800 flex justify-between items-center bg-gray-850 gap-2">
<div class="flex items-center gap-2 min-w-0">
<div class="w-3 h-3 rounded-full bg-brand-thangs shrink-0"></div>
<span class="font-bold">Thangs</span>
</div>
<div class="flex items-center gap-2 shrink-0">
<span class="text-xs bg-gray-700 px-2 py-1 rounded text-gray-300">9:11 portrait</span>
<a href="https://thangs.com/uploader" target="_blank" rel="noopener noreferrer" class="text-xs text-teal-400 hover:text-teal-300" title="Open Thangs upload">
<i class="fa-solid fa-arrow-up-right-from-square"></i>
</a>
</div>
</div>
<div class="p-4 flex-grow flex items-center justify-center bg-gray-950">
<canvas id="canvas-thangs" data-platform-canvas="thangs" class="max-w-full h-auto rounded shadow-md w-full aspect-[9/11] bg-black touch-none"></canvas>
</div>
<div class="platform-crop-controls hidden border-t border-gray-800 p-4 bg-gray-850/60 flex flex-col gap-3" data-platform-controls="thangs"></div>
</div>
<!-- Snapmaker Spaces Card -->
<div class="bg-gray-900 rounded-xl border border-gray-800 overflow-hidden shadow-lg flex flex-col relative border-b-4 border-b-gray-800 h-fit" id="snapmaker-card" data-platform-card="snapmaker">
<div class="p-3 border-b border-gray-800 flex justify-between items-center bg-gray-850 gap-2">
<div class="flex items-center gap-2 min-w-0">
<div class="w-3 h-3 rounded-full bg-brand-snapmaker shrink-0"></div>
<span class="font-bold">Snapmaker Spaces</span>
</div>
<div class="flex items-center gap-2 shrink-0">
<span class="text-xs bg-gray-700 px-2 py-1 rounded text-gray-300">16:9 landscape</span>
<a href="https://space.snapmaker.com/en" target="_blank" rel="noopener noreferrer" class="text-xs text-teal-400 hover:text-teal-300" title="Open Snapmaker Spaces">
<i class="fa-solid fa-arrow-up-right-from-square"></i>
</a>
</div>
</div>
<div class="p-4 pb-12 flex-grow flex items-center justify-center bg-gray-950 relative" id="snapmaker-canvas-wrap">
<canvas id="canvas-snapmaker" data-platform-canvas="snapmaker" class="max-w-full h-auto rounded shadow-md w-full aspect-[16/9] bg-black touch-none"></canvas>
</div>
<div class="platform-crop-controls hidden border-t border-gray-800 p-4 pb-14 bg-gray-850/60 flex flex-col gap-3" data-platform-controls="snapmaker"></div>
<!-- Text Detection Status Bar -->
<div id="snapmaker-status" class="absolute bottom-0 left-0 w-full p-2 text-xs font-semibold flex items-center justify-center gap-2 bg-gray-800 text-gray-300 transition-colors h-10">
<div class="spinner border-gray-400 border-l-white"></div>
Scanning for text...
</div>
</div>
<!-- Cults3D Card -->
<div class="bg-gray-900 rounded-xl border border-gray-800 overflow-hidden shadow-lg flex flex-col h-fit" data-platform-card="cults3d">
<div class="p-3 border-b border-gray-800 flex justify-between items-center bg-gray-850 gap-2">
<div class="flex items-center gap-2 min-w-0">
<div class="w-3 h-3 rounded-full bg-brand-cults3d shrink-0"></div>
<span class="font-bold">Cults3D</span>
</div>
<div class="flex items-center gap-2 shrink-0">
<span class="text-xs bg-gray-700 px-2 py-1 rounded text-gray-300 text-right">1:1 · max 8000×8000 · 10 MB</span>
<a href="https://cults3d.com/en/creations/new" target="_blank" rel="noopener noreferrer" class="text-xs text-teal-400 hover:text-teal-300" title="Open Cults3D upload">
<i class="fa-solid fa-arrow-up-right-from-square"></i>
</a>
</div>
</div>
<div class="p-4 flex-grow flex items-center justify-center bg-gray-950">
<canvas id="canvas-cults3d" data-platform-canvas="cults3d" class="max-w-full h-auto rounded shadow-md w-full aspect-square bg-black touch-none"></canvas>
</div>
<div class="platform-crop-controls hidden border-t border-gray-800 p-4 bg-gray-850/60 flex flex-col gap-3" data-platform-controls="cults3d"></div>
</div>
</div>
</div>
</div>
<!-- Hidden canvas for text detection optimizations -->
<canvas id="canvas-ocr" style="display:none;"></canvas>
</main>
<!-- Global Toast Notification -->
<div id="toast" class="fixed bottom-5 left-1/2 transform -translate-x-1/2 bg-gray-800 border border-gray-700 text-white px-6 py-3 rounded-full shadow-2xl transition-all duration-300 opacity-0 translate-y-10 pointer-events-none z-50 flex items-center gap-3">
<i id="toast-icon" class="fa-solid fa-circle-info text-teal-400"></i>
<span id="toast-msg">Notification</span>
</div>
<footer id="main-footer" class="w-full mt-auto p-6 bg-gray-900/70 backdrop-blur border-t border-gray-800 text-sm text-gray-400">
<div class="max-w-[1600px] mx-auto flex flex-col md:flex-row items-center justify-between gap-4 text-center md:text-left">
<p class="font-bold text-gray-100">
LayerLens by
<a href="https://techjeeper.com" target="_blank" rel="noopener noreferrer" class="font-semibold text-teal-400 hover:underline">TechJeeper Designs</a>
</p>
<div class="flex flex-wrap items-center justify-center gap-4 text-xs font-medium">
<a href="https://github.com/TechJeeper/LayerLens" target="_blank" rel="noopener noreferrer" class="hover:text-teal-400 transition-colors">GitHub</a>
<span class="text-gray-700">•</span>
<a href="https://discord.gg/BH2ebjcSjz" target="_blank" rel="noopener noreferrer" class="hover:text-teal-400 transition-colors">Discord</a>
<span class="text-gray-700">•</span>
<a href="https://github.com/TechJeeper/LayerLens/issues" target="_blank" rel="noopener noreferrer" class="hover:text-teal-400 transition-colors">Report Issue</a>
<span class="text-gray-700">•</span>
<a href="https://techjeeper.com/support.html" target="_blank" rel="noopener noreferrer" class="inline-flex items-center px-3 py-1.5 rounded-lg bg-teal-700 hover:bg-teal-600 text-white font-semibold transition-colors shadow-lg">Support Projects</a>
</div>
</div>
</footer>
</body>
</html>