An open API service indexing awesome lists of open source software.

https://github.com/aka411/png-decoder

A simple PNG (Portable Network Graphic) file decoder written in plain JavaScript without using any external libraries.
https://github.com/aka411/png-decoder

deflate-decompression huffman-decoding lz77-decoding png png-decoder

Last synced: about 1 year ago
JSON representation

A simple PNG (Portable Network Graphic) file decoder written in plain JavaScript without using any external libraries.

Awesome Lists containing this project

README

          

# png-decoder
A simple PNG (Portable Network Graphic) decoder written in plain JavaScript without using any libraries.I wrote this as a learning exercise and is one of my earlier projects and is badly organized and unreadable.
I wrote this as i was curious about how file compression works.I learned a lot while writing this, implemented functions to decompress data compressed using DEFLATE (lossless data compression algorithm involving a combination of LZ77 and Huffman coding).

## Resources that helped me write this decoder

* For Png Specification [PNG SPECIFICATION](http://www.libpng.org/pub/png/spec/1.2/png-1.2.pdf)
* For ZLIB Compressed Data Format Specification [ZLIB Data Format](https://www.ietf.org/rfc/rfc1950.txt)
* For Deflate compression [Deflate](https://www.rfc-editor.org/rfc/rfc1951.html)