[dropcap]W[/dropcap]ebP is a modern image format that provides superior lossless and lossy compression for images on the web. Using WebP, webmasters and web developers can create smaller, richer images that make the web faster.
WebP lossless images are 26% smaller in size compared to PNGs. WebP lossy images are 25-34% smaller than comparable JPEG images at equivalent SSIM quality index.
Lossless WebP supports transparency (also known as alpha channel) at a cost of just 22% additional bytes. For cases when lossy RGB compression is acceptable, lossy WebP also supports transparency, typically providing 3× smaller file sizes compared to PNG.
How WebP Works
Lossy WebP compression uses predictive coding to encode an image, the same method used by the VP8 video codec to compress keyframes in videos. Predictive coding uses the values in neighboring blocks of pixels to predict the values in a block, and then encodes only the difference.
Lossless WebP compression uses already seen image fragments in order to exactly reconstruct new pixels. It can also use a local palette if no interesting match is found.
WebP Compression Techniques in Detail
A WebP file consists of VP8 or VP8L image data, and a container based on RIFF. The standalone libwebp library serves as a reference implementation for the WebP specification, and is available from our git repository or as a tarball.
WebP Support
WebP is natively supported in Google Chrome, Firefox, Edge, the Opera browser, and by many other tools and software libraries. Developers have also added support to a variety of image editing tools.
WebP includes the lightweight encoding and decoding library libwebp and the command line tools cwebp and dwebp for converting images to and from the WebP format, as well as tools for viewing, muxing and animating WebP images. The full source code is available on the download page.
Allow Webp image – WordPress plugin
Generally WordPress doesn’t allow the .webp format for WordPress media and gives an error, to solve that error you need this plugin. Simply activate this plugin and you are ready to upload webp image. To speed up website you need to add webp images to to your Website.
Simple plugin, there is no unnecesary code and its very light Plugin.
Installation
Simply install plugin and it allow image upload.
Offline or Manually
1. Simply Install plugin from WordPress.org
2. Upload /wp-content/plugins/
directory
3. Activate the plugin through the ‘Plugins’ menu in WordPress