Crop images in email using SendGrid

Hello,

I managed to display & resize profile images in email. Because of the various width/height ratios of the original image sources, the resized images are distorted. I know on the bubble front end we can use imgix to fix this but I don’t think that’s applicable in the email template.

How would you solve this?

Thanks!
Ohyoon

I would be looking at an API to do the resize. Algorhymthia has several.

Thanks for pointing out!

Hey @NigelG, I found this one. It does exactly what I need.

I’ve simply copied the code from Algorithmia and run it in a workflow triggered when an image is uploaded, then save the output URL in data. But I’m not sure if that’s the way to do it, as I don’t see the result.


Do I miss anything here?

Or should I set up an API first?

Will have a look for you, sorry for the delay.

This topic was automatically closed after 70 days. New replies are no longer allowed.