-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
93 lines (89 loc) · 4.01 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta property="og:title" content="Media Asciifier">
<meta property="og:description" content="A media to char converter.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://Marco4413.github.io/MediaAsciifier/">
<meta property="og:image" content="https://raw.githubusercontent.com/Marco4413/MediaAsciifier/master/preview.png">
<meta property="twitter:title" content="Media Asciifier">
<meta property="twitter:description" content="A media to char converter.">
<meta property="twitter:card" content="summary">
<meta property="twitter:image" content="https://raw.githubusercontent.com/Marco4413/MediaAsciifier/master/preview.png">
<link rel="icon" href="./preview.png">
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Media Asciifier</title>
<script src="./script.js"></script>
<link rel="stylesheet" href="https://Marco4413.github.io/static/css/dark.css">
<script src="https://Marco4413.github.io/static/js/copyright.js" url="https://github.com/Marco4413/MediaAsciifier" name="Marco4413" year="2024"></script>
<link rel="stylesheet" href="./style.css">
</head>
<body class="children-margin-top-10px">
<div>
Notes:
<ol type="1">
<li>GIFs don't work, use videos instead.</li>
<li>If a video takes too long to process the output will stop updating real-time with the video.</li>
<li>You can seek through a video to get a specific frame.</li>
<li>Changing any output setting (Except for font size) will update the output to the current frame.</li>
<li>The output width in chars is the Scaled Output Width divided by the Output Sample Size.</li>
</ol>
</div>
<table>
<tr>
<td><label for="source-media">Source Media:</label></td>
<td>
<label class="button" for="source-media" id="source-media-label">Pick File</label>
<input class="hidden" type="file" id="source-media" accept="image/*,video/*">
<input class="button" type="button" id="screen-capture" value="Screen Capture">
<input class="button" type="button" id="webcam-capture" value="Webcam Capture">
</td>
</tr>
<tr>
<td><label for="slow-media-time">Slow Media Time (s):</label></td>
<td><input type="number" id="slow-media-time" value="2.5"> <span id="slow-media-flag">🟢</span></td>
</tr>
<tr>
<td><label for="output-scaled-width">Scaled Output Width:</label></td>
<td><input type="number" id="output-scaled-width" value="1000"></td>
</tr>
<tr>
<td><label for="output-sample-size">Output Sample Size:</label></td>
<td><input type="number" id="output-sample-size" value="4"></td>
</tr>
<tr>
<td><label for="output-font-size">Output Font Size:</label></td>
<td><input type="text" id="output-font-size" value="4pt"></td>
</tr>
<tr>
<td><label for="brightness-table">Brightness Table:</label></td>
<td><input type="text" id="brightness-table" value="█▓▒░▌"></td>
</tr>
</table>
<div>
Recommended Brightness Tables:
<ol type="1">
<li><pre>█▓▒░▌</pre></li>
<li><pre>█▓▒▒░░▌ </pre></li>
<li><pre>Ñ@#W$9876543210?!abc;:+=-,._ </pre></li>
<li><pre> .:|?#@@#?|:. </pre></li>
</ol>
</div>
<div>
Input:
<div>
<video class="hidden" id="input-video" controls autoplay loop></video>
<image id="input-image">
</div>
</div>
<div>
Output:
<pre id="output-ascii"></pre>
</div>
<br> <!-- No awful copyright watermark in front of the Output :) -->
<br>
<br>
</body>
</html>