ImageMagickā can be easily run on AWS Lambda to perform image manipulation by means of SCAR.
Assuming that you want to use the /tmp directory for input and output image files:
docker run --rm -v /tmp grycap/imagemagick convert
You can run AWS CLI in AWS Lambda via SCARā to automatically perform image manipulation (for example to convert to grayscale) on files uploaded to the inputfolder of the scar-test S3 bucket by using the following procedure:
scar init -s examples/imagemagick/grayify-image.sh -n lambda-imagemagick -es scar-test grycap/imagemagick
aws s3 cp /tmp/homer.png s3://scar-test/input/homer.png
The converted image to grayscale will be available in s3://scar-test/output/homer.png
Content type
Image
Digest
Size
32.8 MB
Last updated
over 9 years ago
docker pull grycap/imagemagick