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\'
For node.js, you can use node-lambda, it simplifies packaging using a docker image :
node-lambda package -I lambci/lambda:build-nodejs6.10 -A . -x '*.lock *.zip'
The -I
argument will launch a docker image and launch npm i
in your project so it will compile the binary node_modules against the right architecture.