12

Could JPEG Be Replaced By Google’s WebP?

Google’s new VP-8 based images are being tested as a potential replacement for the traditional JPEG image format. The new format, called WebP, will speed up page loading with its smaller file size without compromising quality. So far, the test (of around 1 million images) currently shows an average reduction in file size of around 39%. In order to achieve this reduction, the WebP format makes use of the advanced, still-image compression methods used by VP8 video codec to compress individual frames. Thus, it might someday replace the JPEG as the standard format for photos and similar content on the Web.

webp vs jpeg

Since this is a new image format, you will not be able to see WebP images in browsers or image viewers until support for the format has been provided for those programs. However, you can view Webp images by converting them into PNG format and using your favourite PNG viewer (since PNG is a lossless compression, it will produce an exact rendition of the WebP image content. Currently, the WebP team is proposing a patch to WebKit to provide native support for WebP, so you will be able to view your images in an upcoming release of Google Chrome.

To convert images to WebP or another format, use webpconv on the command line. The webpconv command has the following syntax:

webpconv [-output_dir dir] [-format format] [-quality quality] input_file(s)

Arguments

-output_dir

Path to directory where files are placed. If no path is specified, files are created in the input directory.

-format

Output image format. Valid formats are: BMP, JPEG, PNG, WEBP.

-quality

Integer. Parameter that specifies the trade off between the file size and the quality of the output image. The range is from 0 to 100; 100 is the best image quality with the largest file size. If no value is specified, the default quality value corresponds to a target peak signal-to-noise ratio (PSNR) value of 42. A PSNR value of 42 is usually regarded as a good quality image.

Examples:

You can convert a PNG image in /home/user/images/ to a WebP image with a quality range of 80 with the command:

webpconv -quality 80 /home/user/images/img.png

You can convert a group of WebP images in /home/user/images/ to PNG and place them in the /tmp folder with the command:

webpconv -output_dir /tmp -format PNG /home/user/images/*.webp

You can convert WebP images back to PNG format using webpconv on the command line. For example, to convert all of the webp files in /home/user/images/, enter the following:

webpconv -output_dir /tmp -format PNG /home/user/images/*.webp

Meanwhile, Google has published a gallery of samples that compare WebP-encoded images next to equivalent JPEG images. However, some critics contend that WebP “falls flat compared to JPEG due to weaknesses in the VP8 encoder” and deem the announcement to have been made too early. While there is no doubt about the usefulness of having more effective compression of images in place, previous attempts have not gained much traction. It remains to be seen whether Google’s WebP will be any different.

Talking Point

Is JPEG good enough or is Google right to seek a replacement for the popular image format?

Thanks for reading this article. If you’re new here, why don’t you subscribe for regular updates via RSS feed or via email. You can also subscribe by following @techsling on Twitter or becoming our fan on Facebook. Thanks for visiting!

Facebook Twitter Google+ 


GD Star Rating
loading...
Opt In Image
Sign-up To Our Newsletter....
...And Get This FREE eBook!
  • Understand the phenomenon behind Google Sitelinks.
  • Increase the visibility and popularity of your Website.
  • Find out how you can improve the link structure of your site.
  • Determine how to put your Website on the Google Sitelinks map.
  • Learn how you can use Google Sitelinks to get more targeted-SEO traffic to your Website.
Filed in: Internet, Technology Tags: Codec, File size, Google, Google Chrome, Graphics, Image compression, Image file formats, JPEG, JPG, lossy image, Portable Network Graphics, WebKit, WebP, WebP vs JPEG

Get Updates

Share This Post

Related Posts

12 Responses to "Could JPEG Be Replaced By Google’s WebP?"

  1. Theo says:

    This is the first time i hear/read about the WebP format, thanks for the info!

    GD Star Rating
    loading...
  2. Gaspy says:

    I know Microsoft were proposing some image format as well…

    Why don’t they use JPEG2000 instead? All major apps already support it, it has many many nice features and the computers are fast enough nowadays that decoding speed is not an issue.

    GD Star Rating
    loading...
  3. I’m very interested to see how this plays out. JPEGs have been around for so long, I remember first using them after GIFs in the early ’90s… for that reason alone I think many people will struggle with the shift, as does so much technology utilize the JPEG format… still, on the web the transition may not be as difficult for web based images… as long as all browsers incorporate the new format simultaneously.

    GD Star Rating
    loading...
  4. Paul
    Twitter:
    says:

    I heard about WebP a few weeks ago, but haven’t given it much thought. While it seem great that it can produce smaller file sizes than a JPEG file, it may be a hard sell.

    JPEG is considered the defacto standard with regards to compressed images, since everything can output a JPEG file, so it will be interesting to see if WebP gains traction.

    GD Star Rating
    loading...
  5. Henway says:

    I think internet connections are so fast nowadays that this shouldn’t be big deal anymore.. maybe back in the 90′s, yes, but now? everyone has cable and DSL. If I was a stockholder of Google, I’d be disappointed that they’re wasting R&D on things like this.

    GD Star Rating
    loading...
    • The point of this has nothing to do with the speed of internet connections. It is not about end user load website load time. This is specifically to conserve bandwidth on server loads. Consider a BIG website (like wikipedia for instance) and their massive store of images. If they can reduce the file sizes of all those images by 39% then they are now saving 39% bandwidth for image requests… that equates to A LOT of saved money!

      GD Star Rating
      loading...
  6. Matthew says:

    I love how far google is pushing the rest of the industry with coming out with innovative software like this. The pictures really do look amazing.

    GD Star Rating
    loading...
  7. The replacement of JPEG with Google WebP is a welcome development, in as much as WebP will enable website and webpage with lots of image to open fast.

    GD Star Rating
    loading...
  8. ??? says:

    Down Webp, Up Jpeg future jpeg future jpeg

    GD Star Rating
    loading...

Leave a Reply

Submit Comment

© 3836 TechSling Weblog. All rights reserved.
Designed by TechSling Online.