57 lines
1.8 KiB
HTML
57 lines
1.8 KiB
HTML
<!doctype html>
|
|
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, user-scalable=no">
|
|
<title>Waifu2xLemon</title>
|
|
<style>
|
|
* {
|
|
text-align: center;
|
|
font-family: monospace;
|
|
}
|
|
body, html {
|
|
background-color: #2d2d2d;
|
|
color: white;
|
|
height: 90vh;
|
|
display: grid;
|
|
}
|
|
#childDiv {
|
|
margin: auto;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="childDiv">
|
|
<h1>Waifu2xLemon</h1>
|
|
<p>Simple web interface for waifu2x-ncnn-vulkan</p>
|
|
<form action="/" method="post" enctype="multipart/form-data">
|
|
<input type="file" name="file" style="margin-bottom: 10px" required>
|
|
<br>Scale
|
|
<input type="radio" id="u1x" name="scale" value="1" required>
|
|
<label for="u1x">1x</label>
|
|
<input type="radio" id="u2x" name="scale" value="2" checked>
|
|
<label for="u2x">2x</label>
|
|
<br>Noise reduction
|
|
<input type="radio" id="nnx" name="noise" value="-1" required>
|
|
<label for="nnx">-1</label>
|
|
<input type="radio" id="n0x" name="noise" value="0" checked>
|
|
<label for="n0x">0</label>
|
|
<input type="radio" id="n1x" name="noise" value="1">
|
|
<label for="n1x">1</label>
|
|
<input type="radio" id="n2x" name="noise" value="2" >
|
|
<label for="n2x">2</label>
|
|
<br>Output type
|
|
<input type="radio" id="pngx" name="ftype" value="0" required checked>
|
|
<label for="pngx">.png</label>
|
|
<input type="radio" id="jpgx" name="ftype" value="1">
|
|
<label for="jpgx">.jpg</label>
|
|
<input type="radio" id="webpx" name="ftype" value="2">
|
|
<label for="webpx">.webp</label>
|
|
<br><input type="submit" value="submit owo" style="margin: 20px">
|
|
</form>
|
|
by ./lemon.sh
|
|
</div>
|
|
</body>
|
|
</html>
|