blob: 7e58980748d08589e8e7839905cf9f48b25c1ded (
plain) (
blame)
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
|
<!DOCTYPE html>
<head>
<!-- SEO Tags -->
<title> Image Splitter </title>
<meta charset='UTF-8'>
<meta name='description' content='Splits images into square tiles.'>
<meta name='author' content='Sin'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<meta property='og:description' content='Splits images into square tiles.'>
<meta property='og:title' content='Image Splitter'>
<meta property='og:site_name' content='image-splitter'>
<meta property='og:type' content='website'>
<meta property='og:url' content='https://kyzer.co/image-splitter'>
<meta charset="utf-8">
<link rel="icon" type="image/jpg" href="/favicon.jpg" sizes="128x128">
<!-- Stylesheets -->
<link href="style.css" rel="stylesheet">
<!-- Scripts -->
<script type="text/javascript" src="https://kit.fontawesome.com/01289a7069.js"></script>
<script type="text/javascript" src="js/jszip.min.js"></script>
<script type="text/javascript" src="js/filesaver.js"></script>
<script type="text/javascript" src="js/gif-frames.min.js"></script>
<script type="text/javascript" src="js/gif.js"></script>
<script type="text/javascript" src="js/gif.worker.js"></script>
<script type="text/javascript" src="js/main.js"></script>
<script src="https://code.jquery.com/jquery-3.5.0.min.js"
integrity="sha256-xNzN2a4ltkB44Mc/Jz3pT4iU1cmeR0FkXs4pru/JxaQ=" crossorigin="anonymous"></script>
</head>
<body>
<h2 class="hideme"> Image Splitter </h2> <!-- h1 -->
<!-- <h2> A small tool to split images into square tiles, like large Discord emojis. </h2> -->
<table class="hideme">
<tr>
<td>
<form>
<label for="file">
Upload file
</label>
<input type="file" id="file">
<em> No file selected. </em>
<label for="size">
Size of each emoji in pixels:
</label>
<label for="size-tip" style="font-size: small;">
(Set to 64 for 4x4)
</label>
<input type="number" value="128" id="size">
<label for="delay">
Delay between frames in milliseconds:
</label>
<input type="number" value="10" id="delay">
<label for="prefix">
Prefix for the image files:
</label>
<label for="prefix-tip" style="font-size: small;">
(File names)
</label>
<input type="text" id="prefix" placeholder="Prefix...">
<label for="shrink">
Shrink image to fit one server?
<i class="fas fa-check"></i>
<i class="fas fa-times"></i>
</label>
<input type="checkbox" id="shrink">
<input type="submit" value="Split" id="submit">
</form>
</td>
<td id="preview">
Preview:
<div></div>
</td>
<td>
<a> Download </a>
<strong></strong>
<p></p>
</td>
</tr>
<tr>
<td>
<h4> Copy this to display the emojis after you've finished uploading them. </h4>
<h4> This will be included as a text file in the downloaded zip file. </h4>
<textarea readonly></textarea>
</td>
</tr>
</table>
</body>
|