How to run Image Magick native cli in AWS lambda to resize images

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
prathyusharani
Posts: 1
Joined: 2018-10-05T09:24:10-07:00
Authentication code: 1152

How to run Image Magick native cli in AWS lambda to resize images

Post by prathyusharani » 2018-10-05T09:34:16-07:00

Hi,
I have tried image magick native cli to resize the images on my mac. It worked fine. I would like to get this done using AWS lamda and S3.
I can trigger lambda function when image is uploaded to S3. Now I wanted to write node.js program to re-size the images using Image Magick cli.
I tried it with gm module, it worked. but I wanted to use only native Image Magick cli to do resize.
Does AWS lambda come with prebuilt native Image Magick cli ? If not how can I install the binaries in lamda?

Any help with few example snippets is useful.

Thanks!!

Post Reply