Replace WebP on unsupported browsers

Hi there, first of all I got to say that I love Kirby :smiley:

Now, on a website I’m workin’ on I’ve uploaded all the images in WebP format, all good until you acces it from IOS that dosen’t support WebP.

My question is if there’s a way to change on a JPG/PNG format on browsers that don’t support WebP?

Doing it properly is very much recommended, but it is possible to do it via .htaccess by redirecting to the webp if its supported. You just need to upload both file types for each image. This should be a last resort though if the usual ways are not possible via the picture tag for example.

I havent tried this on a Kirby site though, so you may have to tweak it a little.