https://github.com/mbuczko/lambda-image-resize-rust
Rust based AWS lambda imager resizer
https://github.com/mbuczko/lambda-image-resize-rust
aws-lambda image-processing
Last synced: 10 months ago
JSON representation
Rust based AWS lambda imager resizer
- Host: GitHub
- URL: https://github.com/mbuczko/lambda-image-resize-rust
- Owner: mbuczko
- Created: 2020-05-24T21:49:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-24T21:54:47.000Z (about 6 years ago)
- Last Synced: 2025-08-11T20:40:45.506Z (10 months ago)
- Topics: aws-lambda, image-processing
- Language: Rust
- Size: 3.91 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Lambda Image Resize
A simple image resize lambda function, written in Rust.
This binary responds to Amazon S3 events and triggers a resize on the uploaded image with the sizes specified. As for now resizes the width of an image, keeping still the image ratio.
** Configure
This binary relies on following environmental variable:
- =THUMB= destination size, like "500x200"
Resized image will be PUT back into same bucket as =filename-thumb.png=
** Compile
Use [[https://hub.docker.com/r/softprops/lambda-rust/][Lambda-Rust docker image]] to compile this binary. With Docker running run the following command to build a release.
#+begin_src shell
make build
#+end_src
You can find the (zipped) bootstrap ready for upload to AWS Lambda in =target/lambda/release/bootstrap.zip=