AWS Lambda not working along with the gm module

前端 未结 5 1272
刺人心
刺人心 2020-12-19 03:23

I am using AWS Lambda to resize my image in s3 bucket into different size variants using node js when an image is put into the s3 bucket.

It was working till yesterd

5条回答
  •  不知归路
    2020-12-19 04:14

    Mitch Shields is correct, you now have to build / deploy it yourself onto AWS Lambda.

    I have built a version that works for my project, and a NodeJS tool that will download it onto the lambda instance. The built tarbal is ~85mb, which is too large to package with your code, so you have to downloaded it onto lambda before running. It is stored in /tmp/imagemagick, lambda attempts to cache the /tmp/ folder, so you shouldn't need to download it on every run.

    GitHub Page: https://github.com/DoubleDor/imagemagick-prebuilt

    Check the releases for the tarbal of the build ImageMagick https://github.com/DoubleDor/imagemagick-prebuilt/releases

提交回复
热议问题