Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use ImageMagick in an AWS Lambda function

I am trying to create a lambda that utilizes ImageMagick to convert PDF to images.

For this to work I can upload a binary of ImageMagick.

This approach fails as it seems there are some shared libraries IM depends on.

Is there a way to install ImageMagick either as a layer or get it all packaged up with its dependencies?
Or maybe a different solution all together is the right one.

Right now, I have verified I can upload binaries as part of a Lambda package and call them.

like image 487
Itay Moav -Malimovka Avatar asked Oct 16 '25 17:10

Itay Moav -Malimovka


1 Answers

There is image-magick-lambda-layer

And there is a project to compile ImageMagick utilities for AWS Lambda - ImageMagick for AWS Lambda

There was this Youtube video i tried to follow (i didn't tried it myself) - AWS Serverless Lambda Tutorial - How to Use ImageMagick with AWS Lambda?

like image 163
Oxi Avatar answered Oct 18 '25 09:10

Oxi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!