Google Unveils JPEGLI Library for Enhanced JPEG Compression

Google introduced the new open library jpegli with the implementation of an encoder and a decoder of images in JPEG format. The library includes additional optimization to increase the efficiency of coding, allowing to increase the degree of compression of high-quality images by 35% compared to traditional JPEG codes. In comparison with libjpeg-turbo, JPEGLI Library allows you to achieve a similar level. At the API and ABI level, the library is completely compatible with Libjpeg62 and can be used for its transparent replacement. The library code is written in C++ and spreads under the license BSD.


The increase in compression levels is achieved by the use of advanced technologies to reduce noise in the image and increase quality that use more effective methods of psychovisual modeling to reduce occurring artifacts. In particular, the JPEGLI has an adaptive heuristics of quantification used by the project jpeg xl, as well as improved selection algorithms for quantizing and calculating intermediate results.

The JPEGLI library allows you to encode images with the release of 10 or more bits on the color component. At the same time, the result of the work of new encoding algorithms is adapted for a model traditional for the JPEG format that allows only 8 bits on the color component. Such a feature allows you to maintain compatibility with

/Reports, release notes, official announcements.