File Formats: WebP

The WebP Format is a file format created by Google to provide superior lossless and lossy compression for images on the web. The file format has two forms:

  1. single page (WebP)
  2. multipage animation (WebP ANI)

The file format is supported by all the major web browsers and the Windows operating system starting with version 10. For information on WebP support in other Operating Systems, refer to the following:

The animation format contains the auto-loop feature in GIF. The animation is 24-bit, which means the quality of a WEBP animation will be higher than a GIF animation.

The format uses 24 or 32-bits/pixel. The 32-bit file uses alpha channel transparency, where pixels can range from fully transparent to fully opaque.

Note

When saving 32-bit files, the alpha channel might be discarded if the encoder detects that all the alpha values are 0xFF. In this case, the output file becomes 24-bit rather than 32-bit.

The lossy single page format is intended to replace JPEG. The lossless single page is intended to replace PNG and GIF. The animated files are intended to replace animated GIFs.

Compression

The WEBP format uses VP8 compression (lossy or lossless). WEBP lossless images are 26% smaller than PNG and WEBP lossy images are 25-34% smaller than JPEG files of similar size according to Google, the format's creator.

The WEBP files use the extension .webp.

LEADTOOLS supports single-page files and animations. Each of these can be saved with lossy or lossless compression.

Features

File constants associated with this file format are:

Constant Read Support Write Support Description
FILE_WEBP 24, 32 24, 32 BPP [404] Single-page WEBP file.
FILE_WEBP_ANI 24, 32 24, 32 BPP [405] Animated WEBP file.

Required DLLs and Libraries

Related Formats

Platforms

Win32, x64, UWP, Linux, Android, iOS.

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.