If you use Adobe Photoshop for image editing, you can also install the WebP plugin.
We provide in the
libwebp codec distribution a reference implementation for
the encoder and decoder applications,
dwebp respectively, to
showcase the available functionalities of WebP. These files can be downloaded
from the downloads repository
or can be built from source. They reside in the
libwebp codec includes an extensive encoder and decoder API. Please
consult the appropriate documentation if you'd like to add support for WebP to
your application or browser.
cwebp to Convert Images to the WebP Format
cwebp on the command line to convert PNG or JPEG image files to WebP
format. You can convert a PNG image file to a WebP image with a quality range
of 80 with the command:
cwebp -q 80 image.png -o image.webp
cwebp documentation for a description
of the encoder, its standard and advanced options.
dwebp to Convert Images from the WebP Format
dwebp on the command line to convert WebP image files to the PNG or PPM
format. You can convert a WebP image file, say
image.webp to a PNG image
with the command:
dwebp image.webp -o image.png
dwebp documentation for a description
of the decoder and its command-line options.
Viewing your Images Natively
WebP is natively supported in Google Chrome and the Opera browser, and by many other tools and software libraries.
Additionally, if you use Windows, you can install the WebP Codec for Windows to view these files in Windows Photo Viewer and their thumbnails in Windows Explorer.
API for the WebP Codec
The WebP team has provided an extensive API to allow developers to add support to their applications, including browsers, image editing tools as well as native applications.
Consult the API documentation for a description of
libwebp application programming interface.