How can I install GraphicsMagick or ImageMagick on AWS Lambda?

前端 未结 7 1518
灰色年华
灰色年华 2020-11-29 20:18

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

7条回答
  •  迷失自我
    2020-11-29 20:58

    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).

提交回复
热议问题