# resize\_image\_url doesn't work on webp files?

**URL:** <https://community.hubspot.com/t/resize-image-url-doesnt-work-on-webp-files/76315>\
**Category:** CMS Development\
**Created:** [March 2, 2023, 12:02am UTC](https://community.hubspot.com/t/resize-image-url-doesnt-work-on-webp-files/76315 "2023-03-02T00:02:55Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![BarryGrennan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/barrygrennan/32/97794_2.png) [@BarryGrennan](https://community.hubspot.com/u/BarryGrennan)\
**Post date:** [March 2, 2023, 12:02am UTC](https://community.hubspot.com/t/resize-image-url-doesnt-work-on-webp-files/76315/1 "2023-03-02T00:02:55Z")

</div>

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

* * *

 ![profile2022a.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/7/7273a34ccfe3489fceebc8a36eca751481b59531.jpeg)

**Barry Grennan**

[Freelance HubSpot CMS Developer](https://www.seoanseo.ca?utm_source=HubSpotCommunity)

[Website](https://www.seoanseo.ca?utm_source=HubSpotCommunity) | [Contact](https://www.seoanseo.ca/#contact?utm_source=HubSpotCommunity) | [LinkedIn](https://www.linkedin.com/in/barrygrennan)

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [March 2, 2023, 7:42pm UTC](https://community.hubspot.com/t/resize-image-url-doesnt-work-on-webp-files/76315/2 "2023-03-02T19:42:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jonchim](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jonchim/32/88818_2.png) [@jonchim](https://community.hubspot.com/u/jonchim)\
**Post date:** [March 3, 2023, 1:40pm UTC](https://community.hubspot.com/t/resize-image-url-doesnt-work-on-webp-files/76315/3 "2023-03-03T13:40:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TMerkel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmerkel/32/33545_2.png) [@TMerkel](https://community.hubspot.com/u/TMerkel)\
**Post date:** [March 10, 2023, 9:17am UTC](https://community.hubspot.com/t/resize-image-url-doesnt-work-on-webp-files/76315/4 "2023-03-10T09:17:10Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TMerkel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tmerkel/32/33545_2.png) [@TMerkel](https://community.hubspot.com/u/TMerkel)\
**Post date:** [April 17, 2023, 7:20am UTC](https://community.hubspot.com/t/resize-image-url-doesnt-work-on-webp-files/76315/5 "2023-04-17T07:20:22Z")

</div>

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