Export_ppm for simple bitmap image export

Just a couple of humble functions to save your data grayscale/grayscale+alpha/RGB/RGBA (but alpha channel is ignored) as PPM or PGM image files, binary or text.

I needed some form of bitmap image format export for debugging purposes, so here they are.

Hope the code is not too un-ziggy :slight_smile:

3 Likes