CMS Development

BarryGrennan
Guide

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

 


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

 

 

 

4 Replies 4
TMerkel
Contributor

resize_image_url doesn't work on webp files?

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

resize_image_url doesn't work on webp files?

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

 

Best,

Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Upvotes
TMerkel
Contributor

resize_image_url doesn't work on webp files?

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

jonchim
Guide | Diamond Partner
Guide | Diamond Partner

resize_image_url doesn't work on webp files?

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






Jon Chim
VP of Design & Development
Hypha HubSpot Development


check Did my post help answer your query? Help the Community by marking it as a solution