Automatic image resizing on HubSpot content

Last updated: November 19, 2019

Applies to:

Marketing Hub  Professional, Enterprise
Legacy Marketing Hub Basic
HubSpot CMS

Automatic image resizing is enabled by default for HubSpot-hosted content. This optimizes images to fit the screen they're viewed on, which can decrease browser load-time and improve Google PageSpeed score. Any image with height and width attributes defined in the <img> tag get resized.

You can disable automatic image resizing on an individual image by adding the following query parameter to the image URL in the HTML code:


For example, the following image will be resized on the page because the height and width attributes are set in the <img> tag in the HTML:

<img src="" height="500px" width="600px">

To disable automatic image resizing simply add the additional ?noresize parameter to the image url:

<img src="" height="500px" width="600px">