Simple PNG decoder implementation.
This project is intended for study and demonstration, not for practical use. The implementation is naive and inefficiency, so its decoding speed is VERY slow.
- support 8bit-'Truecolour'(RGB24) or 8bit-'Truecolour with alpha'(RGBA32) only
- 'Grayscale' and 'Indexed-colour'(Palette) are not supported
- interlaced PNG image is not supported
- ignore all ancillary chunks in PNG format
- output PPM(portable pixmap) image file only
- write RGB channels, discard alpha channel for RGBA32 image
- Portable Network Graphics (PNG) Specification
- RFC1950 ZLIB Compressed Data Format Specification version 3.3
- RFC1951 DEFLATE Compressed Data Format Specification version 1.3
MIT License