Stb_image_write is an OCaml binding to stb_image_write from Sean Barrett, Nothings.
stb_image_write.h writes out PNG/BMP/TGA/JPEG/HDR images to C stdio.
The OCaml binding is released under CC-0 license. It has no dependency beside working OCaml and C compilers (stb_image_write is self-contained).
$ make
$ make install
CHANGELOG
Version 0.2, Sun Nov 27 12:37:30 CET 2016 Update to stb_image_write.h v1.02
Version 0.1, Fri Sep 18 20:53:03 CET 2015 Initial release