resize_image_url seems not to work until manual changes

Highlighted
New Contributor

I try to make use of the

resize_image_url

function in order to crop an image to a max sidelength of 80px in order to fit it in a box on an email template.

 

The entrie section looks like that while img_url is a placeholder for my hubl element that pulls it data from a module.

 

resize_image_url(img_url, 0, 0, 80, false, false)

While my example output looks like the following

https://cdn2.hubspot.net/hub/3340630/hubfs/20190812_harrypotter_logo.png?length=80&upsize=true&name=20190812_harrypotter_logo.png

the url doesn‘t get back to me with a resized image. I actually have to modify the link at the end of the string (just removing a single letter or everything starting with &name= seems to work) in order to receive an actually resized output.

 

https://cdn2.hubspot.net/hub/3340630/hubfs/20190812_harrypotter_logo.png?length=80&upsize=true



Am I doing something wrong here or is that the intended behaviour?

Reply
0 Upvotes
1 Reply 1
New Contributor

As far as I can tell – the issue is gone. Seemes like there was a tiny bug on the hubspot backend. Will come back here in case issues reappear.

Reply
0 Upvotes