CMS Development

BarryGrennan
トップ投稿者

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件の返信
TMerkel
投稿者

resize_image_url doesn't work on webp files?

0 いいね!
Jaycee_Lewis
コミュニティーマネージャー
コミュニティーマネージャー

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 いいね!
TMerkel
投稿者

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
ガイド役 | Diamond Partner
ガイド役 | 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