on a different note: I’d like to add support for writing TIFF to halide_image_io.h. The simple approach is to replicate the trivial code from write_debug_image. (Adding ability to read tiff would of course require integrating libtiff, which is a piece of work I’m not eager to add.) Any concerns with this?
(Attempting to share the small bit of code isn’t really practical, since halide_image_io.h is a standalone header library, aside from libjpeg and libpng deps)