-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
376 lines (348 loc) · 22 KB
/
index.html
File metadata and controls
376 lines (348 loc) · 22 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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>OpenLens:Local Image Lab</title>
<meta
name="description"
content="OpenLens is a static, browser-only image editor for crop, resize, rotate, compress, format conversion, background removal, and text-behind-object compositing."
/>
<link rel="icon" type="image/png" href="./OpenLens.png" />
<meta name="theme-color" content="#0f1417" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&family=Montserrat:wght@400;600;700&family=Oswald:wght@400;600;700&family=Dancing+Script:wght@400;700&family=Roboto+Slab:wght@400;700&display=swap"
rel="stylesheet"
/>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/cropperjs@1.6.2/dist/cropper.min.css"
/>
<link rel="stylesheet" href="./styles.css" />
<link rel="stylesheet" href="./ui/textoverlay/textoverlay.css" />
<link rel="stylesheet" href="./ui/duotone/duotone.css" />
<link rel="stylesheet" href="./ui/halftone/halftone.css" />
<link rel="stylesheet" href="./ui/chromatic-aberration/chromatic-aberration.css" />
<link rel="stylesheet" href="./ui/glitch/glitch.css" />
<link rel="stylesheet" href="./ui/film-grain/film-grain.css" />
<link rel="stylesheet" href="./ui/gradientmap/gradient-map.css" />
<link rel="stylesheet" href="./ui/lomo/lomo.css" />
<link rel="stylesheet" href="./ui/oil-paint/oil-paint.css" />
<link rel="stylesheet" href="./ui/sketch/sketch.css" />
<link rel="stylesheet" href="./ui/curvedtext/curvedtext.css" />
<link rel="stylesheet" href="./ui/stroketext/stroketext.css" />
<link rel="stylesheet" href="./ui/stickers/stickers.css" />
<link rel="stylesheet" href="./ui/patterntext/patterntext.css" />
<link rel="stylesheet" href="./ui/watermark/watermark.css" />
<link rel="stylesheet" href="./ui/photo-frame/photo-frame.css" />
</head>
<body>
<div class="app" data-view="landing">
<!-- ===== LANDING VIEW ===== -->
<div class="view-landing">
<nav class="landing-nav">
<div class="nav-brand">
<img src="./OpenLens.png" alt="Logo" width="50" height="50" />
<span class="brand-text">OpenLens</span>
</div>
<a href="https://github.com/zero-gate-org/OpenLens" target="_blank" class="nav-link">GitHub</a>
</nav>
<header class="hero-section">
<div class="hero-content">
<h1 class="hero-title">
Professional Image Editing.<br />
<span class="text-gradient">Privacy First.</span>
</h1>
<p class="hero-subtitle">
A powerful, browser-based image manipulation suite.
Crop, resize, and optimize your assets without sending a single byte to a server.
</p>
<div class="hero-actions">
<button class="btn-primary" onclick="document.querySelector('.tools-section').scrollIntoView({behavior: 'smooth'})">Start Editing</button>
<button class="btn-secondary" onclick="document.querySelector('.features-section').scrollIntoView({behavior: 'smooth'})">Learn More</button>
</div>
<div class="hero-embed">
<a
href="https://peerlist.io/gxaditya/project/openlenslocal-image-lab"
target="_blank"
rel="noreferrer"
class="hero-embed-link"
>
<img
src="https://peerlist.io/api/v1/projects/embed/PRJHNN7JQJ698BE8B3OA9AK8AP88QB?showUpvote=true&theme=dark"
alt="OpenLens:Local Image Lab"
class="hero-embed-image"
/>
</a>
</div>
</div>
</header>
<section class="tools-section">
<div class="section-header">
<h2>The Toolkit</h2>
<p>Everything you need for daily image operations.</p>
</div>
<div class="tool-grid">
<button class="tool-card" data-select-tool="crop" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M6 2v14a2 2 0 002 2h14"/><path d="M18 22V8a2 2 0 00-2-2H2"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Smart Crop</span>
<span class="tool-card-desc">Lossless reframing</span>
</div>
</button>
<button class="tool-card" data-select-tool="resize" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><polyline points="15 3 21 3 21 9"/><polyline points="9 21 3 21 3 15"/><line x1="21" y1="3" x2="14" y2="10"/><line x1="3" y1="21" x2="10" y2="14"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Resize</span>
<span class="tool-card-desc">Pixel-perfect scaling</span>
</div>
</button>
<button class="tool-card" data-select-tool="rotate" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><polyline points="1 4 1 10 7 10"/><path d="M3.51 15a9 9 0 102.13-9.36L1 10"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Rotate</span>
<span class="tool-card-desc">Orientation fix</span>
</div>
</button>
<button class="tool-card" data-select-tool="convert" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><polyline points="16 3 21 3 21 8"/><line x1="4" y1="20" x2="21" y2="3"/><polyline points="21 16 21 21 16 21"/><line x1="15" y1="15" x2="21" y2="21"/><line x1="4" y1="4" x2="9" y2="9"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Convert</span>
<span class="tool-card-desc">WebP / PNG / JPG</span>
</div>
</button>
<button class="tool-card" data-select-tool="bgremove" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="8.5" cy="8.5" r="1.5"/><polyline points="21 15 16 10 5 21"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">BG Remove</span>
<span class="tool-card-desc">On-device AI</span>
</div>
</button>
<button class="tool-card" data-select-tool="blur" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="3"/><path d="M12 2v4m0 12v4M2 12h4m12 0h4m-2.93-7.07l-2.83 2.83m-8.48 8.48l-2.83 2.83m14.14 0l-2.83-2.83m-8.48-8.48l-2.83-2.83"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Selective Blur</span>
<span class="tool-card-desc">Fake bokeh effect</span>
</div>
</button>
<button class="tool-card" data-select-tool="textoverlay" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 7V4h16v3"/><path d="M9 20h6"/><path d="M12 4v16"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Text Behind Object</span>
<span class="tool-card-desc">Layer text behind foreground</span>
</div>
</button>
<button class="tool-card" data-select-tool="curvedtext" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 17V7"/><path d="M4 12c4-6 8-6 12 0"/><path d="M4 17c4-6 8-6 12 0"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Curved Text</span>
<span class="tool-card-desc">Text along arc / wave path</span>
</div>
</button>
<button class="tool-card" data-select-tool="stroketext" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 7V4h16v3"/><path d="M9 20h6"/><path d="M12 4v16"/><rect x="3" y="7" width="18" height="12" rx="1" stroke-dasharray="3 2"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Stroke Text</span>
<span class="tool-card-desc">Outlined / neon / glow text effects</span>
</div>
</button>
<button class="tool-card" data-select-tool="tiltshift" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><line x1="2" y1="12" x2="22" y2="12"/><path d="M2 6c3 3 6 4 10 4s7-1 10-4"/><path d="M2 18c3-3 6-4 10-4s7 1 10 4"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Tilt-Shift</span>
<span class="tool-card-desc">Miniature / toy effect</span>
</div>
</button>
<button class="tool-card" data-select-tool="colorsplash" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><path d="M12 2a10 10 0 010 20" fill="currentColor" opacity="0.2"/><circle cx="12" cy="10" r="4" fill="none"/><path d="M8 16.5a6 6 0 018 0"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Color Splash</span>
<span class="tool-card-desc">Isolate subject colors</span>
</div>
</button>
<button class="tool-card" data-select-tool="shadowinjection" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="8" r="5"/><ellipse cx="10" cy="19" rx="7" ry="3" fill="currentColor" opacity="0.15"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Shadow Injection</span>
<span class="tool-card-desc">Add drop shadow behind subject</span>
</div>
</button>
<button class="tool-card" data-select-tool="gradientmap" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><defs><linearGradient id="gm-icon-grad" x1="0" y1="0" x2="1" y2="0"><stop offset="0%" stop-color="#000"/><stop offset="50%" stop-color="#ff6b35"/><stop offset="100%" stop-color="#ffeb3b"/></linearGradient></defs><rect x="3" y="3" width="18" height="18" rx="3" fill="url(#gm-icon-grad)" opacity="0.3"/><rect x="3" y="3" width="18" height="18" rx="3" stroke="currentColor"/><line x1="3" y1="18" x2="21" y2="18" stroke="currentColor" opacity="0.3"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Gradient Map</span>
<span class="tool-card-desc">Multi-stop color remapping</span>
</div>
</button>
<button class="tool-card" data-select-tool="duotone" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><path d="M12 2a10 10 0 010 20" fill="currentColor" opacity="0.25"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Duotone</span>
<span class="tool-card-desc">Two-color tone mapping</span>
</div>
</button>
<button class="tool-card" data-select-tool="halftone" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="6" cy="6" r="2"/><circle cx="12" cy="6" r="3"/><circle cx="18" cy="6" r="1.5"/><circle cx="6" cy="12" r="3.5"/><circle cx="12" cy="12" r="2.5"/><circle cx="18" cy="12" r="4"/><circle cx="6" cy="18" r="1.5"/><circle cx="12" cy="18" r="4"/><circle cx="18" cy="18" r="2"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Halftone</span>
<span class="tool-card-desc">Dot pattern print effect</span>
</div>
</button>
<button class="tool-card" data-select-tool="chromaticaberration" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><circle cx="10" cy="12" r="7" opacity="0.4"/><circle cx="14" cy="12" r="7" opacity="0.4"/><line x1="12" y1="2" x2="12" y2="5"/><line x1="12" y1="19" x2="12" y2="22"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Chromatic Aberration</span>
<span class="tool-card-desc">Lens color fringing / glitch</span>
</div>
</button>
<button class="tool-card" data-select-tool="glitch" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2" y="2" width="20" height="20" rx="2"/><line x1="2" y1="7" x2="22" y2="7"/><line x1="2" y1="14" x2="22" y2="14"/><line x1="7" y1="7" x2="7" y2="2"/><line x1="14" y1="7" x2="18" y2="2"/><line x1="10" y1="14" x2="10" y2="22"/><line x1="18" y1="14" x2="14" y2="22"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Glitch Art</span>
<span class="tool-card-desc">Digital corruption effect</span>
</div>
</button>
<button class="tool-card" data-select-tool="filmgrain" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="2" y="2" width="20" height="20" rx="2"/><circle cx="7" cy="7" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="17" cy="8" r="1"/><circle cx="5" cy="12" r="1"/><circle cx="9" cy="10" r="1"/><circle cx="14" cy="12" r="1"/><circle cx="19" cy="14" r="1"/><circle cx="6" cy="17" r="1"/><circle cx="11" cy="15" r="1"/><circle cx="16" cy="17" r="1"/><circle cx="8" cy="19" r="1"/><circle cx="13" cy="20" r="1"/><circle cx="18" cy="19" r="1"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Film Grain</span>
<span class="tool-card-desc">Analog noise texture</span>
</div>
</button>
<button class="tool-card" data-select-tool="lomo" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><circle cx="12" cy="12" r="10"/><circle cx="12" cy="12" r="6" opacity="0.3"/><circle cx="12" cy="12" r="3"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Lomo / Cross-Process</span>
<span class="tool-card-desc">Retro analog color grading</span>
</div>
</button>
<button class="tool-card" data-select-tool="oilpaint" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.9 0 1.75-.1 2.6-.3"/><path d="M18.4 7.4l-2.8 2.8"/><path d="M15.6 10.2l4.2-4.2"/><circle cx="19" cy="5" r="2"/><path d="M9 12c0-1.7 1.3-3 3-3s3 1.3 3 3-1.3 3-3 3-3-1.3-3-3z" fill="currentColor" opacity="0.2"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Oil Paint</span>
<span class="tool-card-desc">Kuwahara painterly effect</span>
</div>
</button>
<button class="tool-card" data-select-tool="sketch" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M17 3a2.83 2.83 0 114 4L7.5 20.5 2 22l1.5-5.5L17 3z"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Sketch / Pencil</span>
<span class="tool-card-desc">Edge detection drawing effect</span>
</div>
</button>
<button class="tool-card" data-select-tool="stickers" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M12 2l2.4 7.4H22l-6.2 4.5 2.4 7.4L12 16.8l-6.2 4.5 2.4-7.4L2 9.4h7.6z"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Stickers</span>
<span class="tool-card-desc">Emoji & SVG overlays</span>
</div>
</button>
<button class="tool-card" data-select-tool="patterntext" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 7V4h16v3"/><path d="M9 20h6"/><path d="M12 4v16"/><circle cx="7" cy="12" r="1.5" fill="currentColor" opacity="0.4"/><circle cx="12" cy="10" r="1.5" fill="currentColor" opacity="0.4"/><circle cx="17" cy="12" r="1.5" fill="currentColor" opacity="0.4"/><circle cx="9" cy="16" r="1.5" fill="currentColor" opacity="0.4"/><circle cx="15" cy="16" r="1.5" fill="currentColor" opacity="0.4"/></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Pattern Text</span>
<span class="tool-card-desc">Dots, stripes, grids & textures inside text</span>
</div>
</button>
<button class="tool-card" data-select-tool="watermark" type="button">
<div class="tool-card-icon">
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2" opacity="0.3"/><path d="M7 15l3-6 3 4 2-3 5 5"/><text x="7" y="12" font-size="7" fill="currentColor" opacity="0.5" font-weight="bold">©</text></svg>
</div>
<div class="tool-card-content">
<span class="tool-card-name">Watermark</span>
<span class="tool-card-desc">Text, logo & tiled overlays</span>
</div>
</button>
</div>
</section>
<section class="features-section">
<div class="feature-card">
<h3>Local Processing</h3>
<p>Your images never leave your device. Enhanced security for sensitive assets.</p>
</div>
<div class="feature-card">
<h3>Instant Results</h3>
<p>Zero latency. No upload or download times. Immediate feedback.</p>
</div>
<div class="feature-card">
<h3>Modern Formats</h3>
<p>Full support for next-gen formats like WebP and AVIF.</p>
</div>
</section>
<footer class="landing-footer">
<div class="footer-content">
<span>© 2026 OpenLens</span>
<div class="footer-links">
<a href="privacy.html">Privacy</a>
<a href="changelog.html">Changelog</a>
<a href="license.html">AGPL License</a>
</div>
</div>
</footer>
</div>
</div>
<p id="file-protocol-note" hidden style="margin:16px auto;max-width:980px;padding:10px 12px;border:1px solid #b07a00;border-radius:8px;background:#fff8e6;color:#6e4b00;font-size:0.92rem;">You are opening OpenLens via file://. For best reliability, use a local HTTP server or GitHub Pages.</p>
<script>
(function () {
if (window.location.protocol === "file:") {
const note = document.querySelector("#file-protocol-note");
if (note) note.hidden = false;
}
document.querySelectorAll(".tool-card[data-select-tool]").forEach((card) => {
card.addEventListener("click", () => {
const tool = card.dataset.selectTool || "crop";
window.location.href = `./editor.html?tool=${encodeURIComponent(tool)}`;
});
});
})();
</script>
</body>
</html>