/picopdec

Simple PNG decoder

Primary LanguagePythonMIT LicenseMIT

picopdec

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.

Limitations

  • 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

Specification

License

MIT License