<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: disable image resize if height and width is given in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/634081#M28723</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;(thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;). Yes, this is possible. Just add &lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;?noresize&lt;/FONT&gt; to the end of the image src e.g.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="{{module.img.src}}?noresize" alt="{{module.img.alt}}" height="{{module.img.height}}" width="{{module.img.width}}"&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 12:24:29 GMT</pubDate>
    <dc:creator>piersg</dc:creator>
    <dc:date>2022-05-17T12:24:29Z</dc:date>
    <item>
      <title>disable image resize if height and width is given</title>
      <link>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/633404#M28703</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;have someone see the possibility to disable the auto resize hubspot function if the image height and width attribute is given?&lt;/P&gt;
&lt;P&gt;because i need only a 270px image. if i give the right width and height attribute hubspot make automaticly a srcset instead of src attribute. same on picture tags, where i dont want srcset on img tags.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 12:21:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/633404#M28703</guid>
      <dc:creator>SJaeger</dc:creator>
      <dc:date>2022-05-16T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: disable image resize if height and width is given</title>
      <link>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/633722#M28708</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Thanks for the great question!&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/250023"&gt;@Oezcan&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/103660"&gt;@piersg&lt;/a&gt;&amp;nbsp;do you have any experience here with what&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;is trying to accomplish?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you! – Jaycee&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2022 20:13:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/633722#M28708</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2022-05-16T20:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: disable image resize if height and width is given</title>
      <link>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/634081#M28723</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/185694"&gt;@SJaeger&lt;/a&gt;&amp;nbsp;(thanks&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;). Yes, this is possible. Just add &lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;?noresize&lt;/FONT&gt; to the end of the image src e.g.&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="{{module.img.src}}?noresize" alt="{{module.img.alt}}" height="{{module.img.height}}" width="{{module.img.width}}"&amp;gt;
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 12:24:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/634081#M28723</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2022-05-17T12:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: disable image resize if height and width is given</title>
      <link>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/634085#M28724</link>
      <description>&lt;P&gt;hello and thanks but still not working&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img class="img-fluid w-100" src="{{ resize_image_url(item.image.url ~ '?noresize', 270, 0, 270) }}" alt="{{ item.name|escape }}" {{ sizeAttrs }} loading="lazy"&amp;gt;
{% require_head %}
&amp;lt;link rel="preload" as="image" href="{{ resize_image_url(item.image.url, 270, 0, 270) }}"&amp;gt;
{% end_require_head %}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 May 2022 12:32:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/634085#M28724</guid>
      <dc:creator>SJaeger</dc:creator>
      <dc:date>2022-05-17T12:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: disable image resize if height and width is given</title>
      <link>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/636119#M28801</link>
      <description>&lt;P&gt;These both worked for me in preventing Hubspot from adding srcset and automatic resizing parameters:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;img src="{{ resize_image_url(item.image.src ~ '?noresize', 270, 0, 270) }}" {{sizeAttrs}}&amp;gt;
&amp;lt;img src="{{item.image.src}}?noresize" {{sizeAttrs}}&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the record, I see you've written your img src as &lt;CODE&gt;item.image.url&lt;/CODE&gt; but the parameter of the image tag in Hubspot you need is &lt;CODE&gt;item.image.src&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2022 08:07:05 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/disable-image-resize-if-height-and-width-is-given/m-p/636119#M28801</guid>
      <dc:creator>piersg</dc:creator>
      <dc:date>2022-05-20T08:07:05Z</dc:date>
    </item>
  </channel>
</rss>

