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\'
If you want to tackle image resizing, you may also take a look at the serverless sharp image library which uses Sharp, a high performance Node.js library for image resizing which is about 3x - 5x faster compared to GM/IM. You didn't provide enough informations to say that it fits your use case requirements but I just wanted to mention it since this library already saved me a lot of AWS Lambda costs so far.
By the way: I am not related to this project (but licences are MIT/Apache License 2.0 anyway).