©2012 Google -
Code Home -
Site Terms of Service -
Privacy Policy -
Site Directory
Google Code offered in:
English -
Español -
日本語 -
한국어 -
Português -
Pусский -
中文(简体) -
中文(繁體)
This section provides information about the WebP file format for users who want to be able to save or parse these files. WebP uses a RIFF container. Currently, a WebP file consists of a RIFF header and one VP8 key frame. We are working on a more complete specification that will include more features, like metadata.
Current requirements for a valid WebP file (RIFF + VP8) are:
The byte-level layout is:
| 0ffset | Description |
| 0 | "RIFF" 4-byte tag |
| 4 | size of image data (including metadata) starting at offset 8 |
| 8 | "WEBP" the form-type signature |
| 12 | "VP8 " 4-bytes tags, describing the raw video format used |
| 16 | size of the raw VP8 image data, starting at offset 20; should be even |
| 20 | the VP8 bytes |
Note: All 32-bit sizes are in little-endian order.
For more information about RIFF container see the Wikipedia RIFF description or the RIFF specification.