-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
176 lines (164 loc) · 7.36 KB
/
index.html
File metadata and controls
176 lines (164 loc) · 7.36 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
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
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<title> Picture Pixelizer </title>
<link rel="icon" href="imgs/icon.png">
</head>
<body>
<div class="jumbotron bg-dark rounded-bottom">
<center>
<img src="imgs/icon.png" style="max-height: 20vh">
<div class="col-12">
<h1 class="text-light"> Picture Pixelizer </h1>
<h3 class="text-light"> <i> Pixelize </i> your image! </h3>
</div>
</center>
</div>
<! Upload>
<div class="container border border-secondary rounded">
<center>
<h2> <u> Upload: </u> </h2>
</center>
<form>
<div class="custom-file">
<input type="file" accept="image/png, image/jpeg" class="custom-file-input" id="inputUpload">
<label for="inputUpload" class="custom-file-label"> Choose Image </label>
</div>
</form>
<img id="previewPictureUpload" style="width: 100%;">
</div>
<br>
<! Edit>
<div class="container border border-secondary rounded">
<center>
<h2> <u> Edit: </u> </h2>
</center>
<form>
<div class="input-group">
<div class="container col-4 border border-secondary rounded">
<center>
<h4> Width:</h4>
</center>
<input type="number" id="widthInputEdit" class="input-group-number col-12" min="1">
</div>
<div class="container col-4 border border-secondary rounded">
<center>
<h4> Height:</h4>
</center>
<input type="number" id="heightInputEdit" class="input-group-number col-12" min="1">
</div>
<div class="container col-4 border border-secondary rounded">
<center>
<h4> Scale:</h4>
</center>
<input type="number" id="scaleInputEdit" class="input-group-number col-12" min="0">
</div>
</div>
</form>
<div class="container">
<center>
<img id="previewPictureEdit" style="image-rendering: pixelated; width: 100%;">
</center>
</div>
</div>
<br>
<!Format>
<div class="container border border-secondary rounded">
<center>
<h2> <u> Format: </u> </h2>
</center>
<form>
<div class="radio">
<input type="radio" name="format" id="minecraftCheck" checked> <label> Minecraft</label>
</div>
<div class="radio">
<input type="radio" name="format" id="legoCheck"> <label> Lego</label>
</div>
</form>
<button class="btn btn-secondary col-12" onclick="startProcessing()"> <h3> Convert! </h3> </button>
<div class="progress">
<div class="progress-bar progress-bar-striped text-white" style="width: 0%;" id="progressBar" role="progressbar">0%</div>
</div>
</div>
<br>
<! Result>
<div class="container border border-secondary rounded">
<center>
<h2> <u> Result: </u> </h2>
</center>
<canvas id="canvasResult" style="width: 100%;"></canvas>
</div>
<! Canvas for correct size picture>
<canvas id="imageCanvas" style="image-rendering: pixelated; display: none;"></canvas>
<canvas id="outputCanvas" style="image-rendering: pixelated; display: none;"></canvas>
<br>
<footer class="page-footer font-small bg-primary text-white rounded-top col-12">
<div style="container-fluid">
<div class="row">
<div class="col-4">
<h3> Author: </h3>
<ul>
<li>
<h5>
Joshua Miller
</h5>
<ul style="list-style: circle;">
<li>
Made in his free time.
</li>
<li>
Made in Early 2020.
</li>
<li>
Made by a 10<sup>th</sup> grader at <a href="https://www.xbhs.com/" class="text-success" target="_blank"> Xaverian Brothers High School </a>
</li>
</ul>
</li>
</ul>
</div>
<div class="col-4">
<h3> Media: </h3>
<ul>
<li>
<h5> None </h5>
<ul style="list-style: circle;">
<li>
So far I have none. If needed I may make and attach some here. Very overated in my opinion.
</li>
</ul>
</li>
</ul>
</div>
<div class="col-4">
<h3> Thanks: </h3>
<ul>
<li>
<h5>
<a href="https://www.cs.colostate.edu/~anderson/newsite/javascript-zoom.html" class="text-success" target="_blank">
Zoom.js
</a>
</h5>
<ul style="list-style: circle;">
<li>
An amazing tool that allowed me to scroll in and out on the results!
</li>
<li>
Made by Chuck Anderson and posted on September 1, 2012.
</li>
</ul>
</li>
</ul>
</div>
</div>
</div>
</footer>
<script src="js/values.js"></script>
<script src="js/settings.js"></script>
<script src="js/FormatSelect.js"></script>
<script src="js/zoom.js"></script>
<script src="js/UploadPreviewInput.js"></script>
<script src="js/imageProcessing.js"></script>
<script src="js/EditPreview.js"></script>
<script src="js/updateImageData.js"></script>
</body>
</html>