compressImage
$0.01/invocation
Optimize image files with our versatile compression function, supporting JPG, PNG, and WebP formats. Tailor compression levels with the quality parameter to balance file size and image quality.
compressImage(
)
=
loading...
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.("compressImage", {
"url": "https://storage.googleapis.com/func-live-storage/6725d8f1-4f2c-4259-871e-2b6573c41b4d.jpg",
"size": 0.3
})
3. Make sure to replace FUNC_TOKEN with an actual token from tokens.wakeflow.io
For more information: https://rubygems.org/gems/func_live