-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (59 loc) · 1.74 KB
/
Copy pathindex.html
File metadata and controls
60 lines (59 loc) · 1.74 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Image Resize & compress</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div class="box">
<div class="img_box">
<input
id="inputfile"
required
type="file"
src=""
alt=""
accept="image/*"
hidden
/>
<img src="" alt="Click to upload image" />
</div>
<p>Upload Your Image.</p>
<div class="option">
<div class="option_box">
<input type="checkbox" name="check" id="resize" checked />
<label for="resize">Resize Image</label>
</div>
<div class="option_box">
<input type="checkbox" name="check" id="reduce" />
<label for="reduce">Reduce Quality</label>
</div>
</div>
<div class="imgQtyDropDiv">
<label for="comQty">Choose Compress Quality:</label>
<select name="comQty" id="comQty">
<option value="0.1">High</option>
<option value="0.3">Medium</option>
<option value="0.6">Less</option>
</select>
</div>
<div class="size">
<div class="option_box">
<label for="height">Height</label>
<input type="number" id="height" />
</div>
<div class="option_box">
<label for="width">Width</label>
<input type="number" id="width" />
</div>
</div>
<div class="btn">
<button id="downloadbtn">Download Image</button>
</div>
</div>
<script src="main.js"></script>
</body>
</html>