-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
70 lines (56 loc) · 2.03 KB
/
Copy pathindex.html
File metadata and controls
70 lines (56 loc) · 2.03 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Background Remover</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="wrapper">
<header class="top">
<h1>Background Remover</h1>
<p>Upload an image and instantly remove the background.</p>
</header>
<section class="card">
<div class="upload-area" id="uploadArea">
<div class="upload-inner">
<p class="upload-icon">⬆</p>
<h2>Select Image</h2>
<p class="upload-sub">Click or drag & drop</p>
<input type="file" id="imageInput" accept="image/*">
</div>
</div>
<div id="loadingSpinner" class="loading hidden">
<div class="loader"></div>
<p>Processing image...</p>
</div>
<div id="previewSection" class="preview hidden">
<div class="images">
<div class="box">
<h3>Original</h3>
<img id="originalImage" />
</div>
<div class="box">
<h3>Result</h3>
<canvas id="outputCanvas"></canvas>
</div>
</div>
<div class="actions">
<button id="downloadBtn" class="btn primary">Download PNG</button>
<button id="uploadNewBtn" class="btn secondary">Upload New</button>
</div>
<div class="adjust">
<label>
Threshold:
<span id="thresholdValue">50</span>
</label>
<input type="range" id="thresholdSlider" min="0" max="100" value="50">
<button id="reprocessBtn" class="btn small">Apply</button>
</div>
</div>
</section>
</div>
<script src="script.js"></script>
</body>
</html>