• Hi,

    I’m running a Woocommerce site on Apache server. I also use Cloudflare’s free plan. So I’ve tried with the WebP Express + Shortpixel option (Varied response + Set extension to .webp) as well as by setting up a Page Rule in Cloudflare to Cache Level bypass on all jpg images.

    I’ve followed both these methods as per the instructions on your FAQ but still cannot seem to be able to get the site to serve webp images. I’ve checked the Type on the Network tab when reloading the page.

    Can you please help me out here?

    Regards,
    Arjun

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author rosell.dk

    (@roselldk)

    Yes, I see that it isn’t up and running.

    ShortPixel should be altering the HTML and insert <picture> tags, but it doesn’t.

    In WebP Express 0.11 I implemented HTML altering directly in WebP Express. So Shortpixel isn’t needed to do that anymore.

    Please try enabling the Alter HTML option in WebP Express. And use the “CDN friendly” operation mode.

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    Hi,

    Thanks for the quick reply. I deactivated ShortPixel, have removed the Page rule in cloudflare and now enabled the Alter HTML option in WebP express with CDN mode. The other settings are:

    Enabled: Replace tags with <picture> tags, adding the webp to srcset
    Disabled: Reference webps that hasn’t been converted yet (If enabled, the Network tab shows the request for .webp but they are not loading and show a 404 error).
    Where to Replace: The complete Webpage

    Still can’t get the plugin to work. Any help would be greatly appreciated.

    Thanks and Regards,
    Arjun

    Plugin Author rosell.dk

    (@roselldk)

    Does test conversions work? (clicking the “test” link on a converter)

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    Yes I think. This is what I get when I click on test next to the cwebp binary option:

    Quality: 70. Consider setting quality to "auto" instead. It is generally a better idea
    
    Trying:cwebp
    cwebp options:-metadata none -size 13088 -m 6 -low_memory /opt/bitnami/apps/wordpress/htdocs/wp-content/plugins/webp-express/test/test.jpg -o /opt/bitnami/apps/wordpress/htdocs/wp-content/webp-express/webp-images/test-conversions/test.jpg.webp 2>&1
    Successfully executed binary: /usr/bin/cwebp
    Success. Reduced file size with 64% (went from 28 kb to 10 kb)
    Successfully converted image in 104 ms
    ok

    When I click on the Convert test image (show debug) button, I simply get the image and no debug log.

    Thanks and Regards,
    Arjun

    Plugin Author rosell.dk

    (@roselldk)

    It doesn’t seem that any images have been converted?
    Have you enabled “Convert non-existing webp-files upon request” ?

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    No. Should I enable it?

    Plugin Author rosell.dk

    (@roselldk)

    The “show debug” only works in “Varied image responses” mode, because it relies on a rewrite rule pointing images to the converter

    Plugin Author rosell.dk

    (@roselldk)

    Yes, enable it. You need “Convert non-existing webp-files upon request” to trigger conversions (or alternatively enable “Convert non-existing webp-files upon request to original image” – but the other option is better)

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    I’ve enabled ‘Convert non-existing webp-files upon request’ now. Still not getting the webps

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    Have tried enabling ‘Convert non-existing webp-files upon request to original image (almost obsolete)’ as well.

    The only thing that seemed to work was if I enabled ‘Reference webps that hasn’t been converted yet’, the Network tab showed requests for webp images. However, they weren’t converted or didn’t exist and so returned 404s. Maybe I’ll try enabling one of the other conversion methods?

    Plugin Author rosell.dk

    (@roselldk)

    Also make sure that “Only do the replacements in webp enabled browsers” is disabled.

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    I’ve managed to install gd using sudo apt-get install php7.0-gd on my SSH, but it doesn’t go green on WebP express. You’ve mentioned that it has to be configured with the --with-webp-dir tag but if I change the command to sudo apt-get install php7.0-gd --with-webp-dir I am getting an error.

    Can you please help me out here?

    Plugin Author rosell.dk

    (@roselldk)

    But the cwebp binary works, right? Then you don’t need gd.
    Sorry, I have to go get my kids. Talk to you

    Thread Starter arjunmurali1993

    (@arjunmurali1993)

    Ah cool. I’ll see if I can tweak things around and get it to work.

    @arjunmurali1993 – why don’t you just use ShortPixel to have all your images optimized & WebP versions created and then serve the WebP versions to the browsers that support this format? ShortPixel allows you to do this easily.

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘Not able to get the plugin to work’ is closed to new replies.