{"repo":"ysugimoto/aws-lambda-image","free":true,"listed":false,"github":"https://github.com/ysugimoto/aws-lambda-image","clone":"git clone https://github.com/ysugimoto/aws-lambda-image.git","description":"Automatic image resize/reduce on AWS Lambda","language":"JavaScript","stars":820,"topics":["aws-lambda","nodejs","aws","image"],"license":"MIT","category":"media-processing","readme_excerpt":"aws-lambda-image An AWS Lambda Function to resize/reduce images automatically. When an image is put on AWS S3 bucket, this package will resize/reduce it and put to S3. Requirements - Node.js ( AWS Lambda supports versions of 8.10 or later ) Important Notice From nodejs10.x , AWS Lambda doesn't bundle ImageMagick and image related libraries. https://forums.aws.amazon.com/thread.jspa?messageID=906619&tstart=0 Therefore, if you'd deploy with nodejs10.x runtime (but we prefer and default as it), it needs to install AWS Lambda Layer with this function. This project can support it automatically, see LAYERS in detail. Preparation Clone this repository and install dependencies: When upload to AWS Lambda, the project will bundle only needed files - no dev dependencies will be included. Configuration Configuration file you will find under the name config.json in project root. It's copy of our example file config.json.sample . More or less it looks like: Configuration Parameters name field type description :-------------: :-------------: :-------: -------------------------------------------------------------------------------------------------------------------------------------------------- bucket - String Destination bucket name at S3 to put processed image. If not supplied, it will use same bucket of event source. jpegOptimizer - String Determine optimiser that should be used mozjpeg (default) or jpegoptim ( only JPG ). acl - String Permission of S3 object. See AWS ACL documentation.","default_branch":null,"files":null,"tree":[],"storefront":"/r/ysugimoto","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ysugimoto/aws-lambda-image/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}