# Hubspot automatic image optimization

**URL:** <https://community.hubspot.com/t/hubspot-automatic-image-optimization/70553>\
**Category:** CMS Development\
**Tags:** developer\
**Created:** [December 5, 2022, 1:37pm UTC](https://community.hubspot.com/t/hubspot-automatic-image-optimization/70553 "2022-12-05T13:37:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakubziemba](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakubziemba/32/197100_2.png) [@jakubziemba](https://community.hubspot.com/u/jakubziemba)\
**Post date:** [December 5, 2022, 1:37pm UTC](https://community.hubspot.com/t/hubspot-automatic-image-optimization/70553/1 "2022-12-05T13:37:35Z")

</div>

Hi!

I have a question regarding the image optimization done by Hubspot. I’ve found some info in this link: [2026-03 API reference - HubSpot docs](https://developers.hubspot.com/docs/cms/developer-reference/cdn#image-compression-optimization-and-automatic-image-resizing), especially this part:  
“ **We progressively enhance images to use the WebP format for browsers that support it.** Images will be served WebP format images if the file size of that version of the image is smaller. **This conversion happens server-side and does not change the file extension in the URL**. An image uploaded as a .jpg, will still show as a .jpg in the URL but will be served as a WebP. This ensures links to this image will work for everyone regardless of WebP support.”

While this sounds awesome, my question is: does Lighthouse / PageSpeed Insights “know” about it and does it affect the overall website score / health?

Example: the image is uploaded in .jpg → hubspot optimizes it and serves as .webp, but the URL still has .jpg file extension → we still get “serve images in next-gen formats” → does it affect our end score?

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [December 6, 2022, 8:59pm UTC](https://community.hubspot.com/t/hubspot-automatic-image-optimization/70553/2 "2022-12-06T20:59:34Z")

</div>

Lighthouse doesn’t give the “Serve images in next-gen formats” message just because they’re are pngs and jpgs on the page. They take those images, convert them to wepb, and then compare the file sizes. If the converted image results in a certain amount of data savings _then_ it’ll give the message. Since HubSpot is doing the conversion on the server side the file size Lighthouse will see is that of the converted image so when they do their size comparison it’s not going to result in any savings thus yes, technically, Lighthouse “knows” about the conversion.

---

<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:** [December 6, 2022, 11:41pm UTC](https://community.hubspot.com/t/hubspot-automatic-image-optimization/70553/3 "2022-12-06T23:41:15Z")

</div>

Thanks, @alyssamwilie 🙌 You rock! — Jaycee

---

<div class="post-metadata">

**Author:** ![jakubziemba](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jakubziemba/32/197100_2.png) [@jakubziemba](https://community.hubspot.com/u/jakubziemba)\
**Post date:** [December 7, 2022, 10:56am UTC](https://community.hubspot.com/t/hubspot-automatic-image-optimization/70553/4 "2022-12-07T10:56:18Z")

</div>

this makes sense! thank you so much for the answer 🙏
