1 2 Previous Next 21 Replies Latest reply on Mar 12, 2015 7:54 PM by philmodjunk

    Email images from container as an attachment BUT resize the images

    dinoapolito

      Title

      Email images from container as an attachment BUT resize the images

      Post

      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 ...

       

       

        1 2 Previous Next