Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

WebP + WP Offload (S3 + Cloudfront)

$
0
0

Replies: 1

Hello!

I have just setup and bulk converted all of my images to .webp’s (I can see them all in my S3 bucket).
I am using WP Offload to upload media to S3 and I’m using Cloudfront as the CDN to serve the images. I also use lazysizes data-srcset + LQIP.

However, all of my images are still being served as .jpeg/.jpg/.png – none of them are being served as .webp.

I followed the instructions on this page: https://docs.ewww.io/article/16-ewww-io-and-webp-images

My settings for WebP are as follows:
webp conversion: on
forced webp: on
webp paths:
cdn.willstocks.com
alt webp rewriting: on

Is there any way I can handle the appending of the .webp extension in PHP as opposed to relying on client-side JS? I appreciate this has some incompatibility issues with older browsers/Safari, but I’m OK with that at the moment.

I have noticed that only my sidebar ads are being converted… but they are already .webp so are currently breaking (I can fix that myself)


Viewing all articles
Browse latest Browse all 59525

Trending Articles