WebP: How to create fallback to JPG?

Hey people

The new WebP converter in Webflow is nice.
But since the format isn’t supported by all browsers I asked myself if there’s a way to create an automated fallback function to JPEG for all unsupported browsers somehow.

I know its kinda tricky because if you convert a JPG image to WebP inside Webflow the original file will be deleted. But you could just upload an image twice and compress one of them so you have them in both formats.

Does someone know how to create a fallback with javascript or something else?

Seems to me you have nothing to worry about, unless you’re concerned with IE 11 visitors.

1 Like

Hey @Franne_Norman thanks for the reply.

What about Safari before September 2020?
As far as I can tell all Safari users that have a OSX version older than Big Sur (which was released in November 2020) can’t see webp images.

Or am I missing something?

Not missing something at all.

People using High Sierra or under aren’t using Safari 14, which is, like you said, the version in 2020 that has Webp support.

So that’s still 8,86% that do not have a webp-supported Safari browser. On the other hand, easily half of those people use Chrome.

Either way, there’s definitely still a reason to look for a fallback to jpg/png depending on the demographic of your website visitors.

Let’s see if anyone else on this forum can shed some light on this.

1 Like

Webflow does not provide auto fallback, but you can do it manually by downloading a copy of your image, converting it to Webp, uploading it back to assets, then using the picture element to handle the presentation with custom code. The other alternative is to use custom code with a product like Cloudinary which can autodetect support and deliver the right image to the user dynamically. Life would be so much easier if Webflow simply supported accessing the SRC attributes of an image like the HTML Specification allows for. Then you could have dynamic image transformations without code blocks and easily use external images like we do on all other platforms. This is the main reason why I will not use Webflow for my Photography sites.

1 Like

I absolutely agree. Accessing the src attribute would be so nice!

Another thing that would make it much easier is if Webflow would automatically create the webp image WITH a fallback function. I don’t get it why they didn’t do this in the first place.
I just want to be able to choose if I want Webflow to create and provide a webp ON TOP of the jpeg or png version.

I guess I just have to wait until most of Safari users upgraded to at least Big Sur. Until then this feature doesn’t seem to be worth using (especially here in Switzerland where so many people use macs).

@Schuschi_Eyes - I would consider a manual/automatic approach for large images to reduce page weight. I have been doing that for the last couple of years via Cloudinary and imgix CDN’s. Page speed is very important on marketing sites I build.


I have just published this post. I’m pissed off, because unfortunately I totally ignored the fallback at the time of the conversion. In the agency I use the latest MAC OSX, here in the home office still Catalina, because it simply runs much smoother at boot time. I have installed Safari 14.0 on Catalina. There it seems to run, but not with Catalina, but from Big Sur. So dear Webflow team, now I guess I’m forced to do this crappy system update to get everything running again.

But what exactly do I do for such users, where the images are just not displayed. I find it totally unprofessional not to offer a fallback - or at least a possibility to undo the process. Now please do not come with the argument that I could import an older backup. Sorry, too much has happened on the site in the meantime.