We are thrilled to let you know that the png compression is now done using the famous OptiPNG library. OptiPNG is one of the best optimizers for the PNG format. According to the docs, OptiPNG performs lossless compression which fully preserves the rendered RGB triples, the rendered transparency, the order of rendering, and the semantics contained by the ancillary chunks. To achieve so, OptiPNG relies on what is known as the Deflate compression algorithm.
OptiPNG compression can be configured using multiple parameters, but the most important one is the optimization level. Simply put, the optimization level defines how long OptiPNG will try or iterate to get the optimal result. The higher the optimization level, the higher the duration of the optimization and the better is likely to be the compression of the image.
The /compression
endpoint supports now a new parameter called pngOptimizationLevel
. More details in the api docs.