This repository has been archived by the owner on Jan 7, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
60 lines (57 loc) · 2.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>libflif.js Testing Page</title>
<link rel="stylesheet" href="sample/app.css" type="text/css" />
<script src="submodules/apng-exporter/lib/apng-exporter.js"></script>
<script src="submodules/gif-exporter/lib/gif-exporter.js"></script>
<script src="submodules/tiffjs/lib/tiff.js"></script>
<script src="submodules/picnature/lib/picnature.js"></script>
<script>
var libflif = {};
libflif.libDir = window.URLSearchParams && new URL(window.location).searchParams.get("dev") === "1" ? "built" : "lib";
libflif.debug = true;
document.write(`<script src="${libflif.libDir}/wrapper.js"></` + 'script>');
document.write(`<script src="${libflif.libDir}/libflif.js"></` + 'script>'); // for debug use
document.write(`<script src="${libflif.libDir}/app.js"></` + 'script>');
</script>
</head>
<body>
<a href="https://github.com/saschanaz/libflif.js/"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/e7bbb0521b397edbd5fe43e7f760759336b5e05f/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f677265656e5f3030373230302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_green_007200.png"></a>
<h1>libflif.js Testing Page</h1>
<div id="decodeContent">
<p>
Load a FLIF file to decode: <input type="file" id="decodeButton" accept=".flif,image/x-flif" /><br />
<label><input type="checkbox" id="disableProgressiveBox" /> Disable progressive decoding</label>
</p>
<p>
<input type="button" id="sampleButton" value="Load Lenna.flif" /><br />
</p>
<p>
<input type="button" id="sampleAnimationButton" value="Load spinfox.flif" /><br />
</p>
</div>
<div id="encodeContent">
<p>
Load any natively supported image file to encode: <input type="file" id="encodeButton" accept="image/*" multiple="multiple" /><br />
(Select multiple files to make them animated)
</p>
<p>
Load an APNG/GIF/TIFF file to encode: <input type="file" id="encodeAnimationButton" accept="image/png,image/gif,image/tiff" />
</p>
<p>
Load from clipboard to encode: <input type="text" id="encodeClipboardButton" placeholder="Paste here" /><br />
(Also, drag-and-drop works)
</p>
</div>
<div>
<a download="" id="downloader">
<input type="button" id="downloaderButton" value="Download encoded result" disabled="disabled" />
</a>
</div>
<div id="message"></div>
<img id="image" />
</body>
</html>