A new web format from Google that supports both lossless and lossy compression. Like PNG (Portable Network Graphics) it supports variable transparency — an alpha channel, even in lossy mode. WebP lossless images are 28% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller in size compared to JPEG (Joint Photographic Experts Group) images. Java does not yet support it. Google Chrome and Opera do. IE does via the Chrome plug-in. Safari, Firefox, Avant and SeaMonkey do not support it. The extension is *.webp and the mime type is image/webp for both lossy and lossless formats.
There is an ASCII (American Standard Code for Information Interchange) signature RIFF (Resource Interchange File Format) at offset 0x0000 and another WEBP at offset 0x0008. You can extract the width and height at offset 0x001a. At that offset are a pair of little endian 16-bit vales for width × height.
There seems to be a problem with conversion utility handling transparent backgrounds.
You can test whether it works on your browser:
| How it Should Look | How WebP Renders | |
|---|---|---|
| lossy | ![]() |
![]() |
| lossless | ![]() |
![]() |
|
|
You can get the freshest copy of this page from: | or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror) |
| http://mindprod.com/jgloss/webp.html | J:\mindprod\jgloss\webp.html | |
![]() | Please email your feedback for publication,
letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording,
broken/redirected link reports, suggestions to improve this page or comments to
Roedy Green :
| |
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view Blog | Your face IP:[38.107.179.212] | |
| Feedback | You are visitor number 1. | |