-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
40 lines (35 loc) · 934 Bytes
/
index.html
File metadata and controls
40 lines (35 loc) · 934 Bytes
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Image Processing</title>
<style>
.palette {
display: flex;
flex-wrap: wrap;
width: calc(20px * 10);
}
.color-box {
width: 20px;
height: 20px;
}
</style>
<script src="script.js" defer></script>
</head>
<body>
<h1>Upload an image</h1>
<form enctype="multipart/form-data">
<input type="file" id="fileInput" name="image">
<br>
<label for="colorCount">Number of Colors:</label>
<input type="number" id="colorCount" name="colorCount" min="1" max="30" value="5">
<br>
<label for="dimension">Image Dimension:</label>
<input type="range" id="dimension" name="dimension" min="30" max="200" value="90">
<br>
<button type="button" onclick="processImage()">Process</button>
</form>
<div class="palette"></div>
<img id="newImage" alt="Processed image">
</body>
</html>