• Resolved sbellver

    (@sbellver)


    Hi there

    I’m configuring Webp support i can see image.png. and image.png.webp file but when i open my website only png file is served (with chrome)

    My pages are configuren by hand; i need to do something special to load webp images? I need to change manually all tags ?

    In WebP setttings i can see the green image in chrome and red in safari

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    It’s difficult to tell which file is actually being served without using the Chrome developer tools (network tab). Check the webp video on this page for more info: https://wordpress.org/plugins/ewww-image-optimizer/installation/

    The final test you can do (beyond what is in the video), is to actually download the image, and then try to open it with the default photo viewer on your computer. None of them, that I know of, support webp, so they should fail to open it. You could also open the file in a hex viewer and you’ll see something like RIFF … WEBPVP8 at the beginning of the file

    Thread Starter sbellver

    (@sbellver)

    It seems to work ok, i have two problems before:

    – Browser cache
    – Think webp extension needs to appear in code

    I see logo.png file in code, but in network logo.png file is webp type 🙂

    Plugin Author nosilver4u

    (@nosilver4u)

    Yeah, the transparent rewriting can be tricky, since it looks like the original file, but that network console will show you what is really going on. The real trick there is that the last part of the EWWW IO section in your .htaccess tells the server to treat .webp files as image/webp. Without that section, it will still work, but the Chrome console would show the original filetype, and you would need to do the manual verification I mentioned.

    Glad it’s working for you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Automatic rewrite for WebP not working?’ is closed to new replies.