How can I install GraphicsMagick or ImageMagick on AWS Lambda?

前端 未结 7 1514
灰色年华
灰色年华 2020-11-29 20:18

I am using the gm package for Node.js along with the default ImageMagick installation that is available on AWS Lambda.

const gm = require(\'gm\'

7条回答
  •  抹茶落季
    2020-11-29 20:58

    All dependencies can be packed and uploaded as a part of your AWS Lambda function

    You can mostly use any package you want from AWS Lambda, if you can fit it within the allowed size limits and upload the zip file. Take a look at the AWS Lambda Deployment Limits section

    Also, here's an example of how to package dependencies (for python code) https://stackoverflow.com/a/36093281/358013

提交回复
热议问题