CMS Development

BenDTU
Mitglied

resize_image_url function not resizing

lösung

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 Akzeptierte Lösung
dennisedson
Lösung
HubSpot-Produktteam
HubSpot-Produktteam

resize_image_url function not resizing

lösung

@BenDTU 

try this

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

Lösung in ursprünglichem Beitrag anzeigen

0 Upvotes
2 Antworten
dennisedson
Lösung
HubSpot-Produktteam
HubSpot-Produktteam

resize_image_url function not resizing

lösung

@BenDTU 

try this

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

resize_image_url function not resizing

lösung

 Thanks Dennis - that's working perfectly now.

0 Upvotes