Google’s Guetzli reduces size of JPG files up to 35% without loss in quality

Dunja Đuđić

Dunja Djudjic is a multi-talented artist based in Novi Sad, Serbia. With 15 years of experience as a photographer, she specializes in capturing the beauty of nature, travel, concerts, and fine art. In addition to her photography, Dunja also expresses her creativity through writing, embroidery, and jewelry making.

Google has developed and launched a new encoder named Guetzli. It’s an open source algorithm that allows you to reduce the size of JPG files by up to 35% while keeping the quality unchanged. Additionally, you can increase the image quality while leaving the size unchanged.

Guetzli will allow you high compression density at a good quality of the image. It can be immensely helpful for saving images for the website. Using it will make the website use less data and thus be faster to load.

The visual quality of JPEG images depends on multi-stage compression process: color space transform, discrete cosine transform, and quantization. Guetzli targets the quantization stage. Here, the more visual quality loss is introduced, the smaller is the resulting file. What Guetzli does is make a balance between minimal loss and file size. It reduces the image up to 35% in size, but it’s typically 20 to 30%.

Google has offered these sample images to show the new algorithm compared to an uncompressed image or an image compressed using the common libjpeg encoder.

A crop of a phone line against blue sky. The first image is uncompressed. The second is compressed with libjpeg. The third image was compressed with Guetzli and has fewer digital artifacts, even though its file size is smaller than the libjepeg file.

Google team did experiments where human raters compared compressed image file sizes compressed with Guetzli and as libjpeg images. The raters consistently preferred the images Guetzli produced over libjpeg.

A crop of a cat’s eye. The first image is uncompressed. The second image is encoded with libjpeg and the third image uses Guetzli.

If you think it’s worth a try, note that Guetzly is compatible with existing browsers, image processing applications, and the JPEG standard. Google has made it free for everyone to use, and you can find it on Github. If you prefer its results over libjpeg, it may be worth a shot for making your website faster and easier to load.

[via Gizmodo; image credits: Google]


Filed Under:

Tagged With:

Find this interesting? Share it with your friends!

Dunja Đuđić

Dunja Đuđić

Dunja Djudjic is a multi-talented artist based in Novi Sad, Serbia. With 15 years of experience as a photographer, she specializes in capturing the beauty of nature, travel, concerts, and fine art. In addition to her photography, Dunja also expresses her creativity through writing, embroidery, and jewelry making.

Join the Discussion

DIYP Comment Policy
Be nice, be on-topic, no personal information or flames.

Leave a Reply

Your email address will not be published. Required fields are marked *

8 responses to “Google’s Guetzli reduces size of JPG files up to 35% without loss in quality”

  1. Rich Danby Avatar
    Rich Danby

    Just looked in github and it takes about 1 minute per megapixel to do the compression. I.e. quarter of an hour for a 16mp frame. Not sure it is going to replace much use of libjpeg.

  2. Petar Maksimovic Avatar

    Also known as JPEG Mini…

    1. 2_PI Avatar
      2_PI

      shortpixel.com, pi-xel.io, compressor.io and a million other similar tools. The only good thing of Google lunching such a tool is that some noise is made around the subject and will inspire other to go open source with their projects

  3. Puttan Avatar
    Puttan

    …the reason google’s ‘free’ app takes so long, simply put their analyzing your photographs and then imbedding metadata to track it !!! Please people, stop being so trusting to these sort of offers.

    1. Anonimouser Avatar
      Anonimouser

      It doesn’t, it absolutely doesn’t seem to do so (i read some of the code and it doesn’t seem to have any network call, but I didn’t read ALL the code).

      I think the time spent on compression worth for the bandwidth saved. If the quality is fine, why not?

  4. John Avatar
    John

    Faster load times for websites, awesome!!!!

    1. Mike Avatar

      Yep, you gotta love anything that makes files smaller

  5. mauryr Avatar
    mauryr

    The first cloud service to leverage Guetzli is out…
    http://www.guetzli.it
    Check it out and see for yourself, free while in beta