Slashdot Mirror


Google Releases New Image Format Called WebP

An anonymous reader writes "Google has released WebP, a lossy image format based on the image encoding used by VP8 (the video codec used in Google's WebM video format) to compress keyframes. According to the FAQ, WebP achieves an average 39% more compression than JPEG and JPEG 2000 while maintaining image quality. A gallery on the WebP homepage has a selection of images which compare the original JPEG image with the WebP encoded image shown as a PNG. There's no information available yet on which browsers will support the WebP image format, but I imagine it will be all the browsers which currently have native WebM support — Firefox, Chrome, and Opera." Independent analysis of WebP is available from a few different sources.

33 of 378 comments (clear)

  1. Microsoft releases a new image format called WebP by symbolset · · Score: 4, Funny

    Apparently over at TG Daily Emma Woollacott thinks WebP is a Microsoft innovation. They've also reassigned Richard Rabbat to Redmond, which will probably be quite a surprise to him.

    Meanwhile, in 2016 when the IE team gets around to implementing this image format they'll find a way to put an exploitable buffer overflow into it.

    --
    Help stamp out iliturcy.
  2. Not as Sharp by Saint+Stephen · · Score: 4, Interesting

    I can visibly see a difference in ALL the pictures. The WebP version is slightly murkier and less shows less detail than the JPEG version.

    It's like people say you can't hear the difference in suitably high-bit rate MP3, but I can - in the cymbals - they're not as bright as CD or FLAC.

    This is kind of like that. It's ALMOST pretty great, but it's not as great. I guess if we all lower our expectations, we can get used to it.

    1. Re:Not as Sharp by m2pc · · Score: 5, Insightful

      I disagree. Look at images #3 and #4. The WebP versions are clearly sharper and more detailed than their JPEG counterparts. Other than that, the rest of the images are so close it's difficult to tell which is better. For a 39% size reduction, I think WebP has a clear advantage over JPEG. Some questions remaining are a) will companies actually adopt WebP and popularize it, or will it die a quiet death, and b) how CPU and memory-intensive is the algorithm to implement compared to JPEG, especially in mobile devices with limited resources and CPU power?

    2. Re:Not as Sharp by GreyWolf3000 · · Score: 4, Interesting

      I disagree with this. A music track exists to sound good, so degradation of quality transitively degrades its' purpose. However, not every image on the web was designed to be an artistic masterpiece. For most use cases, smaller filesize for slight drop in quality is a reasonable tradeoff. You can still use PNG for the stuff that you want to render just a certain way; remember, most of us have monitors that inject their own "noise" into the color spectrum of the photos we're watching. Besides, this is all up to the guy (or gal) hosting the website. Since (presumably) it's their content, I think it's fair that they have the choice to choose the quality/compression level that both saves bandwidth costs and looks good.

      --
      Slashdot: Where people pretend to be twice as smart as they really are by behaving like children.
    3. Re:Not as Sharp by TheRaven64 · · Score: 5, Informative

      The images from the x264 comparison are the most striking. In particular, compare the parasol. With the H.264 keyframe, you can see the spokes and the structure. With the JPEG version, there's some macroblocking, but the features are detectable. With the WebP one, it is just a red circle. The rest of the image is similar.

      This is really a shame. Replacing JPEG is probably worthwhile - it's an ancient standard in computing terms. It comes from 1992, making it about the same age as the web. We have almost two decades of image encoding research to build on since then and, almost as importantly, computers are now much more powerful. The first web browser I used was on a 386, which was just about fast enough that the modem was the bottleneck when decoding JPEG images. Now, decoding even large JPEG images doesn't tax my CPU, so we have a lot more cycles to play with for efficient compression. Things like JPEG-2000 provide this, but because they're newer there is a potential for submarine patents to cause problems for them (as happened with GIF).

      The problem with replacing JPEG is the install base. Every graphical web browser since Mosaic has been able to view JPEG images. None can see your new standard (without a plugin). No existing image editors or cameras can generate your new standard (without an external program). Remember how difficult it was for PNG adoption, and that was with the threat of patent lawsuits for encoders.

      --
      I am TheRaven on Soylent News
    4. Re:Not as Sharp by EdZ · · Score: 3, Informative

      Look at the edges of the red and orange areas in the third image. The WebP version has some very nasty aliasing, and a line of black pixels inside the border.
      Cheekily, most of the WebP sample images on the page linked in the summary are higher resolution than the jpeg images they're compared to.

    5. Re:Not as Sharp by mcvos · · Score: 5, Interesting

      I can visibly see a difference in ALL the pictures. The WebP version is slightly murkier and less shows less detail than the JPEG version.

      More accurately, WebP doesn't invent any additional detail. Look at the second image. Lots of artifacts on the background around his head. The WebP version is sharper, has less artifacts, and is a whopping 75% smaller.

      Clearly WebP is especially good at photos with large areas of the same colour, something that JPEG has always been incredibly bad at.

    6. Re:Not as Sharp by DarkIye · · Score: 5, Insightful
      Eh? The pixels you refer to are only slightly darker, not black.

      .

      I'm very impressed with WebP overall. The images are sharper and have better colour tones, and obviously lack those awful JPEG colour smudges. The resolutions are unimportant - the important thing is that WebP produces the images at the same size at similar or superior quality. They are also significantly smaller.

      I'd just like this opportunity to say "fuck the shitty Slashdot comments system". Try and guess which of the myriad reasons is causing me to complain this time!

    7. Re:Not as Sharp by Ardeaem · · Score: 3, Funny

      A music track exists to sound good, so degradation of quality transitively degrades its' purpose.

      Have you heard pop music recently?

    8. Re:Not as Sharp by clone53421 · · Score: 3, Interesting

      Some people call them blurry, others sharper... there’s a whole lot of placebo effect going on here.

      Download the full-sized images (webp-samples.zip), collate the pairs into separate new folders, load one up in Preview, and try to find the difference. Tap next a few times first to lose track of which one you’re looking at, if you want more of a blind test, then look back up at the title bar of the Preview window to check yourself...

      My own verdict: No visible difference. None whatsoever!

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
    9. Re:Not as Sharp by fractoid · · Score: 4, Funny

      I dunno about you but I'm using a Monster(TM) brand DVI cable so I get superior native image resolution on my LCD and 11 bits of resolution per colour channel. I can clearly see the difference between the two formats and one of them is vastly superior.

      --
      Rampant carbon sequestration destroyed the Dinosaurs' tropical paradise. I'm here to help repair the damage.
    10. Re:Not as Sharp by fractoid · · Score: 3, Insightful

      Yeah, I realised that just after posting. *sigh* My bad.

      So I downloaded them and I'm flipping between the two images. I agree that the difference is somewhere between bugger all and diddly squat.

      For the preview images on the page I still maintain that presenting the two images side by side as they do is misleading given that they are pretending that it's "JPEG vs. WebP" when in actual fact it's "JPEG vs. PNG", since they seem to have compressed the right hand side with WebP at full resolution then scaled it down and PNG'd it, thus most likely hiding any artifacts.

      --
      Rampant carbon sequestration destroyed the Dinosaurs' tropical paradise. I'm here to help repair the damage.
  3. Great. So? by ceoyoyo · · Score: 5, Insightful

    JPEG was cutting edge a couple of decades ago but it's not very hard to beat now. We still use it because everything supports it and it's good enough.

  4. Well... by sweffymo · · Score: 4, Interesting

    Meh. I always use PNG anyway. With the advent of faster web connections, there is no need for more compression.

    1. Re:Well... by Anonymous Coward · · Score: 4, Insightful

      There's always need for more compression. It all adds up. One loser at home isn't going to care, whereas an ISP with 20 million users might. Users might care when we eventually switch over to being billed by the byte, and being stuck on slow connections like cellular networks.

    2. Re:Well... by Cornelius+the+Great · · Score: 5, Insightful

      Memory is a concern, especially on embedded devices. Plus, many mobile devices have built-in hardware encoding/decoding support for JPEG to minimize CPU and memory usage.

      PNG is a great format, but we don't need lossless for most pictures on the net.

      Rather, rather than replacing everything with PNG, the web needs a lossy image format with alpha support and ability to do lossless when needed. Oddly enough, (currently) WebP does neither...

      --
      Sigs are for losers
  5. Re:Halo by kill-1 · · Score: 4, Informative

    That's because the scaled down preview JPEGs are compressed twice which is completely idiotic of course. Check out the unscaled images for the real deal.

  6. What a load a crap by suso · · Score: 5, Insightful

    Most of the formats in general use are over a decade old, and the company says that they're consistently responsible for most of the latency users experience

    BULL SHIT! Images are nothing anymore. Its poor javascript coding, flash ads and all the dependent site components that are responsible for most of the experienced latency now. Images don't mean squat unless you're still on a 28.8 modem.

    Also, one way you can make jpeg images smaller is to set the quality value to 75 or 80, most people won't notice the difference and the size of your image will reduce dramatically. The problem today is that people leave their images at full quality right off their camera and upload a 2MB image file when it really only needs to be 138KB. WebP won't fix that user mistake.

  7. Compression and quality aren't the real problem by Aphoxema · · Score: 4, Insightful

    Something suspiciously absent is any mentioning of license. I don't think it is necessary for me to describe why that's a problem.

    --
    "Most people, I think, don't even know what a rootkit is, so why should they care about it?"
  8. Why do a comparison without good data? by frovingslosh · · Score: 3, Interesting

    This makes no sense to me. The /. summary claims the webp images are built from the jpeg images. The jpeg images have already suffered loss and thus sacrificed image quality, and if correct any further processing will only be worse, never better. The proper test would be to make a comparison between two forms of lossy compression based on a lossless source (such as a raw file), which I suspect may be what really happened in the comparison. Of course, some people will take poor quality jpeg images and try to compress them further, but you can't blame the bad results this will produce on the new format technology.

    --
    I'm an American. I love this country and the freedoms that we used to have.
  9. Did you look at the originals? by Moraelin · · Score: 3, Insightful

    Did you look at the full size images offered for download? Because the ones on the page are scaled down, and any artefacts will be inherently "antialised" out. But when you look at them at 1:1 zoom and flip between the two, it's not hard to notice small differences. E.g., the wood texture in picture 4 is notably different IMHO and the chairs in 9 look IMHO blurrier.

    --
    A polar bear is a cartesian bear after a coordinate transform.
  10. Rendering Speed by watermark · · Score: 3, Funny

    On my system, the WebP images take seconds to render, where the jpegs are near instant. This delay is even more noticeable on the last image of the tug boat. I know the memory/cpu trade-off laws, but is this trade-off worth it now? Will this format have to wait until people have better CPUs? They said they put the WebP images in a PNG container, is that affecting rendering speed?

    (I have some random Intel Duo, Chrome, Win7, on a FiOS line.)

    1. Re:Rendering Speed by clone53421 · · Score: 5, Informative

      They didn’t put WebP images in a PNG container. They compressed them as WebP, decompressed them, and then saved the raw pixels as PNG. PNG itself is a lossless format, so any differences you see between the JPEG and the PNG were introduced by the WebP compression. The PNG image is also on an order of 10x larger than the JPEG, which is why it takes longer to download/render on your computer...

      --
      Alexander Peter Kristopeit bought his basement from his mommy for one dollar.
  11. Re:Lenna image not shown?????? by am+2k · · Score: 4, Informative

    Great that you have read the article you apparantly did look at:

    The photos are licensed under a Creative Commons License. Famous classic images such as Lena, the Baboon, etc., often used when doing compression comparisons, are unfortunately not free of copyright.

  12. Not another image format by glatiak · · Score: 3, Insightful

    I can only read this with horror -- yet another lossy image format to burden everyone. When I setup a media management system the number of different formats I need to accommodate already makes my head hurt. We are all dancing around the black hole that says the ultimate lossy compression can be achieved by writing to the null device. I guess that is the problem of software -- since it is intangible one can claim better by making it different (and incompatible). One sees few cars on the road with five wheels -- that standardized pretty quick and a long time ago. And I guess everyone likes keeping it art rather than science. Means 'engineer' is just a courtesy.

  13. Solution: by thijsh · · Score: 3, Insightful

    Good point, a real addition that would be beneficial to mitigate uselessly big photo's would be an image format that contains a thumbnail, small version, larger version and huge version of the photo in progressive order and only downloads the parts needed to display at the size on the screen. JPEG and GIF supported progressive images, with WebP they could enhance on this to have some real images within boundaries clearly segmented in chunks... So when a user uploads a 16MP photo and the website displays it at 320x240 you only download the first two chunks, unless of course you zoom in and the browser downloads the rest of the same file. When launching a new format they have a chance to create something a little revolutionary, the work to add the code to all browsers needs to happen anyway.

    Multiple chunks in progressive sizes will get rid of all the extra thumbnail and small version files that need to be created, stored and downloaded. For example searching an image on Google image search shows:
    - 125x125 thumbnail in results
    - 250x250 zoomin thumbnail over results
    - 550x550 preview over webpage (scaled version of full image)
    - 16MP image when downloading

    When for example you don't like the preview image and don't want to save it you will still have downloaded several MiB... very wasteful, and my cache is littered with several thumbnails per image.
    With the progressive chunked version you would only have downloaded the first few percent of the image until 'chunk_pixels > viewport_pixels'.

    Some other advantages:
    - VP8 is a video codec, so you can predict parts of the larger chunks based on the small chunks before that (basically a gradually focusing video). It may require some specific optimizations but should not increase the total size by a lot (so thumbnails are a free bonus).
    - The images are displayed faster while loading, and not top-down but gradually sharper (the old advantage of progressive encoding, but fuck those JPEGS were ugly).
    - You can display a photo at a low resolution on the webpage but still get sharp high resolution prints without wasting bandwidth of all users just viewing the page.
    - This will make it easier for browsers to scale down large images smoothly (try viewing a 50MP image, no browser scales that smoothly) without requiring massive amounts of CPU.
    - Reduce bandwidth, storage and caching requirement for websites and for clients.

    So Google if you want to save bandwidth: make a format that stores large images in progressive chunks so browsers only need to download as much of the image as is needed to display the current size on screen.

  14. Re:It's certainly a step up from JPEG, but... by Andy+Dodd · · Score: 3, Interesting

    Problem is that, according to the analysis by the x264 developer (see the first independent analysis link), WebP is missing quite a few features that JPEG has, does not add any of the features JPEG is missing but people really want (like a lossy format that contains alpha capability - although admittedly, lossy compression of the alpha channel itself could cause some REALLY weird artifacts.)

    It also, at least in the current state of the encoder, does not appear to perform any better than JPEG.

    --
    retrorocket.o not found, launch anyway?
  15. Re:Sounds like a business opportunity to me by Hittman · · Score: 5, Funny
    What kind of electricity was he using?

    It's a known fact* that electricity from hydro has a smoother, more natural sound than electricity from nuke plants. Coal is somewhere in the middle of the two.

    I've heard people claim "Most people can't tell the difference between .01 and .05 THD, but I can." Which is like saying "Most people can't read the surgeon general's warning on a pack of cigarettes from a half mile away, but I can."

    ---

    *among wacky "audiophiles".

  16. Re:JPEG 2000 was boon by jandrese · · Score: 3, Insightful

    The assumption with JPEG2000 is that it's going to be torpedoed by some jerk with a patent if it ever takes off. That's why nobody is willing to invest too heavily in it. They were already burned by GIF, they learned their lesson the first time.

    --

    I read the internet for the articles.
  17. Slashdot Experiment Time! by goodmanj · · Score: 5, Interesting

    If you already know which is WebP and which is JPG, you're unavoidably biased. We're not going to settle this without a blind trial.

    Slashdot hackers! Your mission, should you decide to accept it, is to write a little website which encodes a series of raw never-been-compressed images as WebP and JPG of equal sizes, presents both side-by-side to the user, and has them click on the one they think is "better". Do not label which image is which: randomize them. Collect statistics and present the data on the site.

    Any good php hacker should be able to whip this up in about an hour. I'd do it, but I've got work to do.

  18. Re:Sounds like a business opportunity to me by LordVader717 · · Score: 4, Funny

    Nuclear power is great for Heavy Metal, but I always ask my power company to switch me to green electricity before listening to Irish music.

  19. Awesome, just what the web doesn't need! by Graymalkin · · Score: 3, Interesting

    The JPEG standard is not perfect. There's several more efficient and effective image codecs available now that were impractical in 1992. However it's relative simplicity and age mean it is trivial to handle on contemporary machines and is available everywhere. Just about any graphical web browser you can find supports JPEG images. While WebP might offer best case space savings over JPEGs of equivalent size the idea that it's somehow appropriate for mass consumption is absurd. The justification of JPEGs slowing down load times for web pages is ludicrous, JavaScript doing a half-assed job of loading resources and unoptimized server access causes far more problems than additional kilobyte in an image. It's yet another half-baked Google project released because there's not enough parental supervision going on.

    WebP does not offer any compelling reason except a promise of space/bandwidth savings over JPEG. It doesn't currently support multiple color spaces, color correction, an alpha channel, or animation. It's promise of space savings at various quality levels is ridiculous because like they did with VP8/WebM Google is only focusing on PSNR measurements. PSNR makes for nice graphs but is not an effective measurement of how images actually look to people. An image that scores well in a PSNR test might look like shit when you actually compare it to the source image. Most JPEG encoders are tuned for psychovisual performance, not to score well in PSNR tests. Testing WebP vs JPEG with VQM tests would be far more appropriate but I suspect WebM would do far worse than with PSNR (since that's what VP8 is tuned for).

    Without a VQM test it's really not appropriate to say that at a given size WebP has better visual quality than JPEG. Even if this turned out to be the case it's missing a lot of other important features that JPEG either has or a truly viable replacement for JPEG should have. WebP only supports a single color space and color profile so if your source images look like shit in that space or with that profile you're out of luck. JPEG can declare an image's color profile or provide its own ICC. It doesn't support lossless encoding or an alpha channel (right now) so it won't be appropriate to replace PNGs and GIFs which are often less optimized for the web than JPEG. It also doesn't support animation which for good or ill is still an important use of GIF files.

    Yet another image format to not get widely accepted on the web doesn't do anyone any good. Why not help support JPEG-2000 or JPEG-XR? Help PNG out with a F/OSS compatible LZMA library. No camera manufacturers will support it because they can't just write a few Exif tags and attach an ICC profile and have a usable image. Converting your personal library means you get not only a lossy-to-lossy conversion but lose the ability to do lossless editing (rotation etc). Because WebP has more complicated encoding than JPEG it's going to require more CPU power to decode, your iPhone an Droid will get worse battery life browsing WebP content than JPEG content. The reduced file size (assuming WebP lives up to its promises) isn't going to make up for the vastly more complicated decoding. So hooray, Google managed to reuse their VP8 encoder for still images while simultaneously not solving any actual problems with images on the web.

    --
    I'm a loner Dottie, a Rebel.
  20. Re:Microsoft releases a new image format called We by StormReaver · · Score: 4, Funny

    Apparently over at TG Daily Emma Woollacott thinks WebP is a Microsoft innovation.

    She fixed that oversight. But now she seems to think that Google Chrome is a Microsoft product:

    "...but Microsoft says it's developing a patch for WebKit to provide native support for WebP in an upcoming release of Google Chrome."