-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
101 lines (93 loc) · 3.6 KB
/
Copy pathindex.html
File metadata and controls
101 lines (93 loc) · 3.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<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>I2A - Convert your image to ASCII art</title>
<meta name="title" content="I2A - Convert your image to ASCII art" />
<meta name="description" content="Convert any image to a cool ASCII art and copy it away. " />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://metatags.io" />
<meta property="og:title" content="I2A - Convert your image to ASCII art" />
<meta property="og:description" content="Convert any image to a cool ASCII art and copy it away. " />
<meta property="og:image" content="https://hrst.in/i2a/metaimg.png" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:url" content="https://metatags.io" />
<meta property="twitter:title" content="I2A - Convert your image to ASCII art" />
<meta property="twitter:description" content="Convert any image to a cool ASCII art and copy it away. " />
<meta property="twitter:image" content="https://hrst.in/i2a/metaimg.png" />
<style>
body{
min-height: 98vh;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
background-color: #e5e5f7;
opacity: 1;
background-image: repeating-radial-gradient( circle at 0 0, transparent 0, #e5e5f7 10px ), repeating-linear-gradient( #444cf755, #444cf7 );
}
pre{
line-height: 8px;
width: 90vw;
height: 90vh;
overflow: auto;
background-color: white;
}
#pre-parent{
display: none;
margin-top: 1rem;
/* box-shadow: 0 4px 15px 2px black; */
border: 1px solid rgba(0, 0, 0, 0.527);
}
#input{
text-align: center;
background-color: white;
padding: 2rem;
border-radius: 8px;
display: flex;
flex-direction: column;
gap: 20px;
}
#input button, input::file-selector-button{
background-color: #444cf7;
outline: none;
border: none;
color: white;
padding: 10px 0 10px 0;
font-weight: bold;
letter-spacing: 2px;
border-radius: 8px;
}
input[type="number"]{
border: 1px solid #444cf7;
border-radius: 8px;
outline: none;
padding: 10px 0px 10px 8px;
}
input::file-selector-button{
padding: 10px;
letter-spacing: 1px;
}
</style>
</head>
<body>
<div id="input">
<h4>Image to ASCII</h4>
<input type="file" id="imageinp" accept="image/png, image/jpg, image/jpeg"/>
<input type="number" id="offsetx" placeholder="OffsetX" value="4">
<input type="number" id="offsety" placeholder="OffsetY" value="4">
<input type="number" id="lh" placeholder="Line height" value="8">
<button id="convert" onclick="convertImage()">Convert</button>
</div>
<div id="pre-parent">
<button onclick="copy_pre()">Copy</button>
<button onclick="toimg()">Download Image</button>
<button onclick="totxt()">Download text file</button>
<pre></pre>
</div>
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<script src="script.js"></script>
</body>
</html>