-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresize.html
41 lines (41 loc) · 1.27 KB
/
resize.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
<!DOCTYPE html>
<html>
<head>
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0 user-scalabel=0"
/>
<title>Image Resizer (YATIAC)</title>
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
/>
</head>
<body>
<div class="container">
<br /><br />
<div class="alert alert-success" role="alert">
<h4 class="alert-heading">Image resizer by Yatiac</h4>
<p>
this image resizer was done in NodeJS using sharp library, check more
info here:
<a href="https://github.com/yatiac/node-image-resizer"
>https://github.com/yatiac/node-image-resizer</a
>
</p>
</div>
<br /><br />
<form action="/resize" method="POST" enctype="multipart/form-data">
<div class="form-group">
<input type="file" class="form-control-file" name="file" required />
</div>
<div class="form-group">
<button class="btn btn-block btn-info">
Resize to 50% of original size
</button>
</div>
</form>
</div>
</body>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
</html>