Serve autogenerated WebP images instead of jpeg/png to browsers that support WebP. This works on anything (media library images, galleries, theme images etc).
You can use WebP Express on Strattic if you use a cloud service to convert the image. In this setup guide, we will use the service from EWWW Image Optimizer (paid).
Choose a plan, and sign up for to EWWW Image Optimizer
Create an API key here and copy it to your clipboard
Log in to WordPress Dashboard. Go to Plugins > Add New and search for the WebP Express plugin and then click the Install Now button, then the Activate button.
Go to Settings > WebP Express.
Choose these recommended settings;
a) Operation mode: choose CDN Friendly
b) Conversion method: click configure next to EWWW Cloud Converter, here you can paste in the API key from step 1b.
c) Alter HTML: tick the checkbox.
d) click the blue Save Settings button to save all the settings.
In a typical setup, you will have redirect rules which trigger conversion when needed, and thus you do not need to perform a bulk conversion. Your subsequent uploads will be automatically optimized. If you are happy with the results, do a Full Publish to your static site.
That’s it! 🎉