A function for AWS Lambda convert jpeg images uploaded on Amazon S3 to WebP.
- Clone it.
git clone https://github.com/ikait/lambda-webp-converter.git- Set current directory to it, and install npms locally.
cd lambda-webp-converter
npm i -S -D- Build. The codes based on ES6 are converted to AWS Lambda compatible ES5.
gulp buildThis output ./build.zip.
- Upload
./build.zipto AWS Lambda.