Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 402 Bytes

README.md

File metadata and controls

7 lines (4 loc) · 402 Bytes

This is a demo of using PNG to compress and decompress data to be used in Javascript. This demo is heavily inspired by Nihilogic, and is really just an update that includes javascript decompress, along with tweaking the compression to use all three RGB values instead of just luminance.

The library is easy to use, there are two functions;

PNGStorage.encode(data);

PNGStorage.decode(data, callback);