HUB
Sign inSign up
imagemagick logo

grycap/imagemagick

By grycap

•Updated over 9 years ago

Imagemagick on minideb:jessie

Image
0

2.8K

grycap/imagemagick repository overview

⁠ImageMagick on AWS Lambda

ImageMagick⁠ can be easily run on AWS Lambda to perform image manipulation by means of SCAR.

⁠Local Usage

Assuming that you want to use the /tmp directory for input and output image files:

docker run --rm -v /tmp grycap/imagemagick convert 

⁠Usage in AWS Lambda via SCAR

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:

  1. Create the Lambda function
scar init -s examples/imagemagick/grayify-image.sh -n lambda-imagemagick -es scar-test grycap/imagemagick
  1. Upload a file to the S3 bucket
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

Tag summary

Content type

Image

Digest

Size

32.8 MB

Last updated

over 9 years ago

docker pull grycap/imagemagick