-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
199 lines (179 loc) · 8.57 KB
/
index.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Photon ArgWizard</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<div id="image">
<img id="theImage" src="#">
</div>
<div id="controls">
<div class="controlbox">
<span class="controlboxlabel">🌍 url & argument</span>
<input type="text" id="mediaUrl" size="80" value="" class="longinput">
<br>
<input type="text" id="mediaArg" size="80" value="" readonly class="longinput">
<br>
<span class="controlboxlabel">↕️ dimensions</span>
Base: <input type="text" id="basewidthfield" size="5" value="" readonly> x <input type="text" id="baseheightfield" size="5" value="" readonly> Current: <input type="text" id="widthfield" size="5" value="" readonly> x <input type="text" id="heightfield" size="5" value="" readonly> <button id="load">Change Image</button>
</div>
<div class="controlbox">
<div id="widthheight" style="font-size:14px;">
<span class="controlboxlabel">↔️ w / h</span>
<input type="radio" id="nowh" name="widthheight" checked> <label>none</label>
<input type="radio" id="addw" name="widthheight"> <label>w</label>
<input type="number" id="widthw" min="10" max="1000" value="300">
<input type="radio" id="addh" name="widthheight"> <label>h</label>
<input type="number" id="heighth" min="10" max="1000" value="300">
<input class="medinput" readonly type="text" id="widthheightstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="crop" style="font-size:14px;">
<span class="controlboxlabel">🌾 crop</span>
<input type="radio" id="nocrop" name="crop" checked> <label>none</label>
<input type="radio" id="addcrop" name="crop"> <label>crop %</label>
<label>x</label> <input type="number" id="cropx" min="0" max="100" value="25">
<label>y</label> <input type="number" id="cropy" min="0" max="100" value="25">
<label>w</label> <input type="number" id="cropw" min="0" max="100" value="50">
<label>h</label> <input type="number" id="croph" min="0" max="100" value="50">
<input class="medinput" readonly type="text" id="cropstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="resize" style="font-size:14px;">
<span class="controlboxlabel">⚖️ resize</span>
<input type="radio" id="noresize" name="resize" checked> <label>none</label>
<input type="radio" id="addresize" name="resize"> <label>resize to</label>
<input type="number" id="resizex" min="10" max="1000" value="300">
<input type="number" id="resizey" min="10" max="1000" value="300">
<input class="medinput" readonly type="text" id="resizestring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="fit" style="font-size:14px;">
<span class="controlboxlabel">🪗 fit</span>
<input type="radio" id="nofit" name="fit" checked> <label>none</label>
<input type="radio" id="addfit" name="fit"> <label>fit to</label>
<input type="number" id="fitx" min="10" max="1000" value="300">
<input type="number" id="fity" min="10" max="1000" value="300">
<input class="medinput" readonly type="text" id="fitstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="unletterbox" style="font-size:14px;">
<span class="controlboxlabel">📮 letterbox</span>
<input type="radio" id="noulb" name="ulb" checked> <label>none</label>
<input type="radio" id="yesulb" name="ulb"> <label>unletterbox</label>
<input type="radio" id="addlb" name="ulb"> <label>add letterbox</label>
<input type="number" id="lbx" min="10" max="1000" value="300">
<input type="number" id="lby" min="10" max="1000" value="300">
<input class="medinput" readonly type="text" id="lbstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="filters" style="font-size:14px;">
<span class="controlboxlabel">🎨 filters</span>
<input type="radio" id="nofilter" name="filter" value="nofilter" checked>
<label>#nofilter</label>
<input type="radio" id="greyscale" name="filter" value="greyscale">
<label>Greyscale</label>
<input type="radio" id="negate" name="filter" value="negate">
<label>Negative</label>
<input type="radio" id="sepia" name="filter" value="sepia">
<label>Sepia</label>
<input type="radio" id="edgedetect" name="filter" value="edgedetect">
<label>Edge Detect</label>
<input type="radio" id="emboss" name="filter" value="emboss">
<label>Emboss</label>
<input type="radio" id="blurgaussian" name="filter" value="blurgaussian">
<label>Blur Gaussian</label>
<input type="radio" id="blurselective" name="filter" value="blurselective">
<label>Blur Selective</label>
<input type="radio" id="meanremoval" name="filter" value="meanremoval">
<label>Mean Removal</label>
</div>
</div>
<div class="controlbox">
<div id="bright" style="font-size:14px;">
<span class="controlboxlabel">🔆 brightness</span>
<input type="radio" id="nobright" name="bright" checked> <label>none</label>
<input type="radio" id="addbright" name="bright"> <label>level</label>
<input type="number" id="brightvalue" min="-100" max="100" value="30">
<input class="medinput" readonly type="text" id="brightstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="cont" style="font-size:14px;">
<span class="controlboxlabel">💡 contrast</span>
<input type="radio" id="nocont" name="cont" checked> <label>none</label>
<input type="radio" id="addcont" name="cont"> <label>level</label>
<input type="number" id="contvalue" min="-100" max="100" value="30">
<input class="medinput" readonly type="text" id="contstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="tint" style="font-size:14px;">
<span class="controlboxlabel">🌈 colorize</span>
<input type="radio" id="notint" name="tint" checked> <label>none</label>
<input type="radio" id="addtint" name="tint"> <label>colorize</label>
<label>🔴</label>
<input type="number" id="redtint" min="-100" max="100" value="50">
<label>🟢</label>
<input type="number" id="greentint" min="-100" max="100" value="50">
<label>🔵</label>
<input type="number" id="bluetint" min="-100" max="100" value="50">
<input class="medinput" readonly type="text" id="tintstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="smooths" style="font-size:14px;">
<span class="controlboxlabel">💧 smooth</span>
<input type="radio" id="nosmooth" name="smooth" value="no" checked>
<label>no smooth</label>
<input type="radio" id="addsmooth" name="smooth" value="yes">
<label>smooth</label>
</div>
</div>
<div class="controlbox">
<div id="zoomr" style="font-size:14px;">
<span class="controlboxlabel">🔎 zoom</span>
<input type="radio" id="nozoom" name="zoomr" checked> <label>none</label>
<input type="radio" id="addzoom" name="zoomr"> <label>level</label>
<input type="number" id="zoomvalue" min="1" max="10" step="1" value="2">
<input class="medinput" readonly type="text" id="zoomstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="qual" style="font-size:14px;">
<span class="controlboxlabel">👁️ quality</span>
<input type="radio" id="noqual" name="qual" checked> <label>none</label>
<input type="radio" id="addqual" name="qual"> <label>level</label>
<input type="number" id="qualvalue" min="-100" max="100" value="50">
<input class="medinput" readonly type="text" id="qualstring" size="20" value="">
</div>
</div>
<div class="controlbox">
<div id="strips" style="font-size:14px;">
<span class="controlboxlabel">📄 exif</span>
<input type="radio" id="no" name="strips" value="no" checked>
<label>#nostrip</label>
<input type="radio" id="all" name="strips" value="all">
<label>Strip all</label>
<input type="radio" id="info" name="strips" value="info">
<label>Strip info</label>
<input type="radio" id="color" name="strips" value="color">
<label>Strip color</label>
</div>
</div>
<div class="controlbox">
🧙♀️ Tal's <b>Argument Wizard</b> for <a href="https://developer.wordpress.com/docs/photon/api/">WPCOM / VIP / JP Photon images</a>
</div>
</div>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>