Be our Guetzli, says Google, to make beastly JPEGs beautifully small

Image-shrinker can shrink pics by 45 per cent, but is cursed by heavy compute requirements

By Simon Sharwood


Google's revealed details of a new JPEG encoder it calls “Guetzli” and which it says can shrink images by between 29 and 45 per cent without making them appreciably less pretty.

Google bothers with this stuff because it wants web pages to load faster, so that people use the web more and see more of its ads. To that end, the company has conducted research that suggests that around half of image requests to web sites are JPEGs, while images represent about two-thirds of web pages' size. Shrinking images therefore means faster downloads, less stress on networks and happier users.

Hence Google's previous efforts to build better compression like Zopfli and Brotlie. The latter was adopted by Microsoft in its Edge browser, a neat endorsement of wider appetite for better compression.

Guetzli, described as a ”Perceptually Guided JPEG Encoder” in an arXiv pre-press paper aims to shrink JPEGs “without impacting the perceived visual quality of the images.”

To do that, the encoder optimises images and then uses a Google-developed model of human vision called “Butteraugli” to figure out which of the resulting images cannot be distinguished from the original by the human eye.

The authors of the paper, all from Google Research Europe, say Butteraugli offers a “psychovisual metric” that takes into account the way we see. One that Guetzli exploits is that “the human eye has lower spatial resolution in blue than in red and green, and has next to no blue receptors in the high-resolution area of the retina. Thus, high frequency changes in blue can be encoded less precisely.”

The paper contains plenty more discussion of how our eyes and brains work together, but the guts of it is that when you optimise an image to make it look good to the eye, rather than look good to an algorithm, you can reduce the amount of data it occupies without making it look worse. That outcome's also possible because Guetzli produces homogeneous changes, rather than the occasional changes other encoders use and which produce obvious compression artefacts in images.

The algorithm's research team is hopeful their approach of optimising for the eye is worthwhile, writing that “although Guetzli may be too slow for many practical uses, we hope that it can show direction for future image format design.” ®

Sign up to our NewsletterGet IT in your inbox daily


More from The Register

Google leaps on the platform formerly known as Firefox with $22m splurge for KaiOS

The great feature phone revival rolls on

Your RSS is grass: Mozilla euthanizes feed reader, Atom code in Firefox browser, claims it's old and unloved

The Live bookmarks, preview features, that is

Chrome, Firefox pull very unstylish Stylish invasive browser plugin

Add-on made sites look pretty while getting away with ugly data slurpage

Get the FTP outta here, says Firefox

Apparently someone still uses src to suck content into web pages from FTP servers

Mozilla changes Firefox policy from ‘do not track’ to ‘will not track’

Browser will stop asking nicely for privacy protections

Firefox to feature sponsored content as of next week

Mozilla thinks you won’t mind analytical action on the client

Mozilla wants to seduce BOFHs with button-down Firefox

Control. Control. Control

Have I been pwned, Firefox? OK, let's ask its Have I Been Pwned tool

Mozilla's Firefox Monitor makes a hash of email queries

Unsanitary Firefox gets fix for critical HTML-handling hijack flaw

Versions 56 through 58 need patching, pronto

From Firefox to fired cocks: Look who's out to save you being shafted by insecure Internet of Dingalings – it's Mozilla!

Secret-keeping screw-ups bedevil amorous appliances