.webp is a graphic format that is yet another attempt to replace .jpg as the king of graphics. Google invented .webp and it has all of the features you would want in a graphic format:
Google claims .webp files are about 30% smaller than .jpg’s but our experience has been that is does not.
We compared graphics built, edited and saved using Paint.net and found that .webp is about 10% smaller than .jpg’s but you can find no end of .webp supporters on both YouTube and the internet in general who show amazing results.
There are two serious issues with .webp on WordPress:
While Chrome, Edge and Firefox do support webp, Safari, Internet Explorer and KaiOS browsers have either no support or limited support for .webp
If you try to upload a .webp file to a WordPress site, it will error out with “Sorry, this file type is not permitted for security reasons.”. There are four ways to allow :
//** *Allow upload for webp files*/function webp_upload_mimes($existing_mimes) { $existing_mimes['webp'] = 'image/webp'; return $existing_mimes; } add_filter('mime_types', 'webp_upload_mimes');
.
define( 'ALLOW_UNFILTERED_UPLOADS', true ); .
In the unlikely event you are interested in the mechanics of how .webp works, you can read the Google Webp Developer page HERE which explains such common terms as Adaptive Block Quantization, VP8 Intra-prediction Modes and LZ77 Backward Reference. Enjoy!
This website uses cookies.