Email images from container as an attachment BUT resize the images
I have a container field that reference jpegs stored on a file server somewhere. These images are about 5MB each. On the layout they are displayed at about 300pixels - thumbnail size. The container field is called FMPThumbs.
I then have a script that uses Export File Contents to export the images to a local folder on the users desktop and are emailed as an attachment.
All works well except I don't want to email the full sized jpeg. I want to email the 300 pixel thumbnail.
Is there a way to achieve this?
I have tried the GetThumbnail function but can't get that to work at all. My understanding is that this function can resize my images.
I have tried this expression in another container field called GetThumb
GetThumbnail ( FMPThumbMain ; GetWidth(FMPThumbMain)/4 ; GetHeight(FMPThumbMain)/4 )
But I do not see any images in the GetThumb container.
So I'm lost ...