Gautier de Montmollin asked for an announcement here of the availability of Z Compression, a standalone version of the Zlib Deflate compression algorithm, derived from his Zip-Ada. This may be a better choice for Zlib compression than the zlib-ada binding for Ada projects, as it’s all Ada and its compression method Deflate_3 usually produces slightly smaller results than zlib’s level 9.
In addition to the Github repository, Z Compression is also available through Alire, thanks to the efforts of Bent Bracke.
Z Compression was initially created to implement Image_IO.Write_PNG, also available through Alire.
Extraction of the corresponding decompression algorithm from Zip-Ada is left as an exercise for the reader.