How to display WebP image even in Chrome?


I use Firefox, but I have seen that Chrome doesn’t display my WebP images when I give the url directly.

How can I fix that?


Hello there

Follow these steps to resolve the issue if Chrome cannot to display your WebP images when you browse the url directly.
Make sure the WebP file is accessible and hosted appropriately first. Ensure that on your server; the mime type is set to image and webp. Verify that your server is set up to process WebP files correctly. try these steps and then let me know about the result :+1: :+1:

The image is displayed as ascii characters.

Where can I add mime type for WebP ?

# cat /etc/nginx/mime.types | grep webp
    image/webp                                       webp;

Ok, it’s a Drupal issue: