resize_image_url doesn't work on webp files?

This seems to be the case with every webp file I’ve tried on my clients portal. Can anyone else confirm this?

{{resize_image_url("file.jpg", 0, 0, 300)}}

works

{{resize_image_url("file.webp", 0, 0, 300)}}

doesn’t work


Barry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

Hey, @BarryGrennan :waving_hand: I’m happy to check internally on this one. Out of curiosity, @Anton @Teun @jonchim, is this your experience as well?

Best,

Jaycee

hey there, I think I’ve noticed that sometimes hubspot will serve JPG file in the front end but when you open the image link the webp version is in the URL. And/or when you save the file down the URL shows .jpg but saves down as .webp. Maybe HubSpot renders it after the fact and doesn’t know to resize a .webp? Not entirely sure

Does not work for me too. I want to use it in a html img srcset tag

https://community.hubspot.com/t5/HubSpot-Ideas/resize-image-url-and-WebP-format/idi-p/779299