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\'
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