-
Notifications
You must be signed in to change notification settings - Fork 1
/
image-filter.html
183 lines (168 loc) · 7.8 KB
/
image-filter.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Editing</title>
<link rel="shortcut icon" type="image/x-icon" href="https://image.flaticon.com/icons/svg/1042/1042339.svg" />
<!-- fontawesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css"
integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<!-- min.css bootstrap -->
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<!-- my style -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<header class="shadow-lg mb-5">
<nav class="navbar navbar-expand-md navbar-dark p-3">
<div class="container">
<a href="index.html" class="navbar-brand"><i class="far fa-images fa-3x p-0"></i></a>
<ul class="navbar-nav h5 nav ">
<li class="nav-item">
<a href="index.html" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="image-filter.html" class="nav-link active">Image Editing</a>
</li>
<li class="nav-item">
<a href="steganography.html" class="nav-link">Steganography</a>
</li>
<li class="nav-item">
<a href="about.html" class="nav-link ">About</a>
</li>
</ul>
</div>
</nav>
</header>
<main>
<div class="container">
<section id="addFile">
<div class="custom-file mb-3">
<input type="file" class="custom-file-input" id="upload-file">
<label for="upload-file" class="custom-file-label">Choose Image</label>
</div>
<div class="row">
<div class="col-md-6">
<canvas id="canvas1" class="rounded shadow mb-md-0 mb-4"></canvas>
</div>
<div class="col-md-6">
<canvas id="canvas2" class="rounded shadow "></canvas>
</div>
</div>
</section>
<section id="filter" class="text-center py-5">
<h2 class=" my-3">Filters</h2>
<div class="row my-4 ">
<div class="col-md-3 col-sm-6 mb-4">
<div class="btn-group ">
<button class="filter-btn brightness-remove btn btn-in">-</button>
<button class="btn btn-secondary btn-disabled" disabled>Brightness</button>
<button class="filter-btn brightness-add btn btn-in">+</button>
</div>
</div>
<div class="col-md-3 col-sm-6 mb-4">
<div class="btn-group ">
<button class="filter-btn contrast-remove btn btn-in">-</button>
<button class="btn btn-secondary btn-disabled" disabled>Contrast</button>
<button class="filter-btn contrast-add btn btn-in">+</button>
</div>
</div>
<div class="col-md-3 col-sm-6 mb-4">
<div class="btn-group ">
<button class="filter-btn saturation-remove btn btn-in">-</button>
<button class="btn btn-secondary btn-disabled" disabled>Saturation</button>
<button class="filter-btn saturation-add btn btn-in">+</button>
</div>
</div>
<div class="col-md-3 col-sm-6 ">
<div class="btn-group ">
<button class="filter-btn vibrance-remove btn btn-in">-</button>
<button class="btn btn-secondary btn-disabled" disabled>Vibrance</button>
<button class="filter-btn vibrance-add btn btn-in">+</button>
</div>
</div>
</div>
<!-- ./row -->
</section>
<section id="effects">
<h2 class="text-center my-3">Effects</h2>
<div class="row mb-3">
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn vintage-add btn btn-dark btn-block">
Vintage
</button>
</div>
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn lomo-add btn btn-dark btn-block">
Lomo
</button>
</div>
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn clarity-add btn btn-dark btn-block">
Clarity
</button>
</div>
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn sincity-add btn btn-dark btn-block">
Sin City
</button>
</div>
</div>
<div class="row">
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn crossprocess-add btn btn-dark btn-block">
Cross Process
</button>
</div>
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn pinhole-add btn btn-dark btn-block">
Pinhole
</button>
</div>
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn nostalgia-add btn btn-dark btn-block">
Nostalgia
</button>
</div>
<div class="col-md-3 col-sm-6 mb-3">
<button class="filter-btn hermajesty-add btn btn-dark btn-block">
Her Majesty
</button>
</div>
</div>
</section>
<section id="action" class="my-5 ">
<div class="row">
<div class="col-sm-6 mb-3">
<button id="download-btn" class="btn btn-outline-primary btn-block">Download Image</button>
</div>
<div class="col-sm-6">
<button id="revert-btn" class="btn btn-outline-danger btn-block">Remove Filters</button>
</div>
</div>
</section>
</div>
</main>
<footer class="p-4">
<div class="row text-center">
<div class="col-md-6 mx-auto">
<h4>Website Made With love <i class="fas fa-heart text-danger"></i></h4>
<p>copyright © <span id="year"></span></p>
</div>
</div>
</footer>
<!-- min jquery -->
<script src="library/jquery-3.4.1.min.js"></script>
<!-- min.js bootstraop (min.js + propper.js)-->
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
<!-- Canman script -->
<script src="library/caman.full.min.js"></script>
<!-- Own Script -->
<script src="js/image-filter.js"></script>
<script>
// Get the current year for the copyright
$('#year').text(new Date().getFullYear());
</script>
</body>
</html>