# A Look Inside Google’s New Image Format

Can Google’s WebP image format really speed up the whole Web?
October 6, 2010

Last week, Google announced that it has developed a new image file format that promises to speed up not only Google, but the rest of the Internet. The new format, dubbed WebP, could reduce the size of image downloads significantly compared to the currently widespread JPEG format. If, as Google claims, 65 percent of the traffic on the Internet consists of image files, WebP could eventually give the entire online world a speed boost.

WebP is based on a new data compression algorithm for image files. According to Google product manager Richard Rabbat, the formula was originally developed to compress video clips, such as those Google serves on YouTube. Engineers then found that the same math could be used on static images.

It works like this: software converts an image stored in another file format to the WebP format by looking at a block of 16 pixels in the original image, and noting the color of each pixel in that block. The software then predicts what the pixel colors in an adjacent block of 16 pixels will be, based on the first block. Finally, it compares the predicted values to the actual colors of the pixels in the next block. If the WebP algorithm’s educated guess is correct, no additional data needs to be added to the compressed image file. Only those pixels whose colors are different from the prediction are recorded in the file.

The result is that fewer pixel values need to be stored in most WebP image files than in a JPEG file of the same image. When an Internet user with a WebP-enabled browser downloads the image, his browser would use the same formula to predict many of the pixel values, and then fill in those pixels stored in the WebP file that didn’t match the algorithm’s prediction. Instead of downloading a lot of pixels, the WebP browser would mathematically calculate their colors. Predicting pixel colors turns out to be faster than downloading them, even on a high-speed Internet connection.

That’s the theory, but how does WebP fare in real-world practice? In tests on one million images selected from the Internet at random, Google software developers claim that converting them to WebP format led to an average 40 percent reduction in the image’s file size. The company has set up a demo page that shows typical Web images and lists how much smaller the same image would be in WebP, without visible changes to the quality of the image.

For now, you can’t use WebP. The predictive algorithms need to be built into your browser. Google is adding WebP support to its own browser, Chrome. But realistically, WebP will need to be supported by nearly all of the world’s browsers - that means Internet Explorer, Firefox and Safari - before website operators will have an incentive to start serving WebP images en masse. It’s a long-term project, not a quick fix.

Speed has always been a mantra at Google. Faster Web pages lead to more Googling by Web users. This, in turn, leads to more ads served by Google, which leads to potentially more ad revenue for the company. In a 2007 test conducted live on the site for several weeks, Google claims to have found that slowing its response to a search query from the average 400 milliseconds to 500 milliseconds lowered test subjects’ search engine usage enough that (had the delay been real across the entire site) it would have cost Google \$900 million in lost revenue over a year.

That’s one of the reasons the company recently began serving search results to users’ screens while they are still typing their search terms. If WebP gets built into everyone’s browsers and the format is embraced by website operators, Google’s traffic - and everyone else’s – seems almost sure to go up.

### DeepMind’s cofounder: Generative AI is just a phase. What’s next is interactive AI.

“This is a profound moment in the history of technology,” says Mustafa Suleyman.

New variants will pose a challenge, but early signs suggest the shots will still boost antibody responses.

### Human-plus-AI solutions mitigate security threats

With the right human oversight, emerging technologies like artificial intelligence can help keep business and customer data secure

### Next slide, please: A brief history of the corporate presentation

From million-dollar slide shows to Steve Jobs’s introduction of the iPhone, a bit of show business never hurt plain old business.

### Stay connected

Illustration by Rose Wong

## Get the latest updates fromMIT Technology Review

Discover special offers, top stories, upcoming events, and more.

Thank you for submitting your email!