image-lambda
image-lambda copied to clipboard
An AWS Lambda function that AWS S3 can invoke to create thumbnails or reduce file size for png and jpg images.
when i deploy zip to amzon Lambda,and run function,there is an error in CloudWatch log. node v4.3.0 { "errorMessage": "spawn /var/task/node_modules/imagemin-mozjpeg/node_modules/mozjpeg/vendor/cjpeg ENOENT", "errorType": "Error", "stackTrace": [ "exports._errnoException (util.js:870:11)", "Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)",...
Rather than having two separate reduce and resize paths in the code as well as config.json blocks, why not just have one list—call it "images" rather than "resizes" in the...
Hello I built the script with Vagrant, uploaded the zip file to S3 but I get this error when I test the function: ```{ "errorMessage": "Cannot find module 'imagemin-pngquant'", "errorType":...
Hi, if in the config.json file I leave the `reduce` section I get this error: ``` { "errorMessage": "spawn /var/task/node_modules/mozjpeg/vendor/cjpeg ENOENT", "errorType": "Error", "stackTrace": [ "exports._errnoException (util.js:870:11)", "Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)", "onErrorNT...