This PNG decoder is meant to be used in my other C projects.
This is a simple implementation of a PNG decoder, it currently implements the following features:
- IHDR, IDAT and IEND chunks
- Greyscale wihout alpha
- Truecolour without alpha, without palette
- 1 to 16 bit depth samples
- All PNG filtering methods
Alpha channels, interlacing, paletted images and non-mandatory chunks are not supported.
meson setup <builddir>
meson compile -C <builddir>
lisiblepng-bin
is a program that decodes a PNG and outputs it as a PPM image to stdout.
Usage is as follow:
lisiblepng <image_path>