serverless-framework

How can I install GraphicsMagick or ImageMagick on AWS Lambda?

别等时光非礼了梦想. 提交于 2019-11-27 03:32:29
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').subClass({ imageMagick: true }); For some reason, the resize functionality fails for certain images. I created an EC2 instance with Amazon Linux AMI (ami-hvm-2016.03.3.x86_64-gp2). I installed the (old) 6.x version of ImageMagick that is available from yum . When I run my script with that install on the EC2 instance, it reproduces the failure I see when the code runs on Lambda, confirming it is something with this version of IM that is causing the

How can I install GraphicsMagick or ImageMagick on AWS Lambda?

ぐ巨炮叔叔 提交于 2019-11-26 22:14:35
问题 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').subClass({ imageMagick: true }); For some reason, the resize functionality fails for certain images. I created an EC2 instance with Amazon Linux AMI (ami-hvm-2016.03.3.x86_64-gp2). I installed the (old) 6.x version of ImageMagick that is available from yum . When I run my script with that install on the EC2 instance, it reproduces the failure I see