Sitecore not allowing WebP image to attached in an image field. Can anyone suggest how to enable that feature so that we can attached webP format image
WebP format is not (yet) supported in Sitecore out of the box.
Note that WebP format is not supported in all browsers. WebP should really be generated at runtime and cached. Also you need to check the http accept header for "image/webp" to be know if the browser supports it.
You can upgrade Sitecore with the Kam Figy's Dianoga module https://github.com/kamsar/Dianoga in order to support webP. In your media lib, you still upload normal images like jpeg, gif, png. But at runtime they are converted to WebP for supporting browsers.
note: The current 4.0 version of Dianoga contain some WebP related bugs, be careful Jul 11, 2019 at 7:26
If i use file datatype for pulling webP images, will it have a bade effect on code? Jul 11, 2019 at 8:07
Add below and try <param desc="Allowed extensions (comma separated)">webp</param> Aug 7, 2020 at 12:14
By default, the media library does not support modern image formats such as WebP. I have written a blog to enable Sitecore cms to upload webp images.