Google's JPEG Encoder "Guetzli" Reduces Image File Sizes By 35%
The algorithm is called Guetzli, which is apparently Swiss German for cookie, the new JPEG encoder does its magic during the so-called quantization stage of image compression, which is when the encoder tries to strike a balance between removing detail to keep size down, without obliterating the source image.
Guetzli uses what Google’s calling a “psychovisual model” to reduce the file size, which approximates color perception and “visual masking” more thoroughly than other encoders. All of this comes at a cost, which is, as Guetzli is decidedly slower than other image compression methods out there.
Check out these examples to get a better idea of how Guetzli works:
|A crop of an image of a phone line hanging against a blue sky. From left to right – original image, libjpeg compression in the middle, and Guetzli on the right|
As you can tell by the image, the new encoder does better than libjpeg, although, as we said above, it needs more time to produce results.
|A crop of a cat’s eye. From left to right – original, libjpeg, Guetzli|
Guetzli is open source and is good news for everyone, as it could help substantially reduce the size of image content online, as well as in apps. This would mean faster loading times and less data used.
Source : Google