CMS Development

BenDTU
Member

resize_image_url function not resizing

SOLVE

We are using the following syntax on our blog homepage:

<img src="{{ resize_image_url("{{ content.post_list_summary_featured_image }}", 100, 100, 0) }}">

 

Which is outputting to <img src="https://cdn2.hubspot.net/hubfs/2592552/Compare-and-Consolidate-3-757x350.png">

 

Is there something obvious we are doing incorrectly here? This syntax looks correct as far as I can tell.

0 Upvotes
1 Accepted solution
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

resize_image_url function not resizing

SOLVE

@BenDTU 

try this

<img src="{{ resize_image_url(content.post_list_summary_featured_image, 100, 100, 0) }}">

View solution in original post

0 Upvotes
2 Replies 2
dennisedson
Solution
HubSpot Product Team
HubSpot Product Team

resize_image_url function not resizing

SOLVE

@BenDTU 

try this

<img src="{{ resize_image_url(content.post_list_summary_featured_image, 100, 100, 0) }}">
0 Upvotes
BenDTU
Member

resize_image_url function not resizing

SOLVE

 Thanks Dennis - that's working perfectly now.

0 Upvotes