summaryrefslogtreecommitdiffstats
path: root/README.md
blob: 940dfc40f0077676c463feab9ff6f13b59bc2690 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# LisiblePNG - a PNG decoder

This PNG decoder is meant to be used in my other C projects.

## Supported features

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.

## Building

```bash 
meson setup <builddir>
meson compile -C <builddir>
```

## CLI

``lisiblepng-bin`` is a program that decodes a PNG and outputs it as a PPM image to stdout.
Usage is as follow:
```bash
lisiblepng <image_path>
```
Go back to lisible.xyz