PGF plus PNG
While PGF is the right choice for natural images, PNG is the right choice for artificially generated images. For laymen, such a distinction is often already too complicated and they save their images indiscriminately in JPEG or PNG format.
Here libPPP offers an elegant remedy: the software library automatically selects the appropriate format and saves the image in either PGF or PNG format, thus ensuring memory-efficient and fast compression and decompression.
libPPP is based on libPGF and libPNG and written in platform independent C++ source code.