Hi,
Sometimes I want to output a PNG file with Nim, but I don't want to deal with any low level details. I just want to supply the RGBA for each pixel and spit out a quick image. I'm working on a library to do this. It just wraps the existing nim PNG library in a higher level abstraction. I've put what I have so far on github with a quick example.
https://github.com/jrenner/nim-simplepng
If there's any interest in this I'll do some more work on it and add it to Nimble.
You can also use stb-image to easily extend to .jpg, .tga and .bmp: https://gitlab.com/define-private-public/stb_image-Nim
I've been using it in Arraymancer to convert Tensors of uint8 of shape (colors, height, width) to jpg/png