resizeImage
$0.02/invocation
Resize an image to the specified dimensions by adjusting either the width, with the height scaling accordingly, or both width and height simultaneously. Additionally, various fitting options are available when modifying the width and height.
API
python
Ruby
>_
Google Sheets
Chat
Email
To use this function in your Ruby application:
1. Install it:
gem install func_live
2. Copy over this snippet:
FuncLive.token = 'FUNC_TOKEN'
FuncLive.("resizeImage", {
"sourceUrl": "https://storage.googleapis.com/func-live-storage/bcd6c488-20ce-47b4-9e8f-98b9e416862b.png",
"width": 500,
"height": 500,
"fit": "inside"
})
3. Make sure to replace FUNC_TOKEN with an actual token from tokens.wakeflow.io
For more information: https://rubygems.org/gems/func_live