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.
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
Does test conversions work? (clicking the “test” link on a converter)
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
It doesn’t seem that any images have been converted?
Have you enabled “Convert non-existing webp-files upon request” ?
The “show debug” only works in “Varied image responses” mode, because it relies on a rewrite rule pointing images to the converter
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)
I’ve enabled ‘Convert non-existing webp-files upon request’ now. Still not getting the webps
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?
Also make sure that “Only do the replacements in webp enabled browsers” is disabled.
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?
But the cwebp binary works, right? Then you don’t need gd.
Sorry, I have to go get my kids. Talk to you
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.