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 build
This output ./build.zip
.
- Upload
./build.zip
to AWS Lambda.