Created
November 7, 2018 22:50
-
-
Save bernardobelchior/f2a9ad7882d176862f5f693a50b3b977 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn main() { | |
lambda::gateway::start(|req| { | |
//... | |
let image = load_from_memory(&image)?; | |
let thumbnail = image.thumbnail(128, 128); // Create the 128x128 thumbnail | |
// ... | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment