WebP codec is a library to encode and decode images in WebP format. This package contains the library that can be used in other programs to add WebP support, as well as the command line tools 'cwebp' and 'dwebp'.
The package contains tools for encoding (cwebp) and decoding (dwebp) images.
The easiest use should look like: cwebp.exe input.png -q 80 -o output.webp which will convert the input (JPEG, TIFF, GIF, PNG, BMP, JPEG XR or ICO) file to a WebP one using a quality factor of 80 on a 0->100 scale (0 being the lowest quality, 100 being the best. Default value is 75).
A longer list of options is available using the -longhelp command line flag.
The sample decoding program dwebp.exe will take a .webp file and decode it to a PNG image file (amongst other formats). This is simply to demonstrate the use of the API. You can verify the file test.webp decodes to exactly the same as test_ref.ppm by using: dwebp.exe test.webp -ppm -o test.ppm
diff test.ppm test_ref.ppm
The full list of options is available using -h.