0.0.3 • Published 10 years ago

uupaa.png.js v0.0.3

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

PNG.js Build Status

npm

PNG and APNG implementation.

Document

Browser and NW.js(node-webkit)

<script src="<module-dir>/lib/WebModule.js"></script>
<script src="<module-dir>/lib/PNG.js"></script>
<script>

var pngBinary = new Uint8Array(...);
var pngData = WebModule.PNG.decode(source, WebModule.PNG.parse(pngBinary));

pngRender(pngData);
</script>

WebWorkers

importScripts("<module-dir>lib/WebModule.js");
importScripts("<module-dir>lib/PNG.js");

var pngBinary = new Uint8Array(...);
var pngData = WebModule.PNG.decode(source, WebModule.PNG.parse(pngBinary));

postMessage(pngData, ...);

Node.js

require("<module-dir>lib/WebModule.js");
require("<module-dir>lib/PNG.js");

var pngBinary = new Uint8Array(...);
var pngData = WebModule.PNG.decode(source, WebModule.PNG.parse(pngBinary));
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago