If you're manually coding your site, you'll need to swap all <img>
tags for <picture>
that include both the next-gen format and the fallback one. Here is what I'm using in one of my sites:
<picture>
<source type="image/webp" srcset="pictures/h-doctors.webp">
<source type="image/png" srcset="pictures/h-doctors.png">
<img src="pictures/h-doctors.png" alt="A picture of the doctor">
</picture>
I checked it at the time and non-webp supporting Safari was using the png correctly.
As an alternative, if you have access to your server configuration and your server is Apache, you can install the pagespeed mod which does the above automatically for all your served images.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…