A simple Azure Function to resize images given an external URL.
This repository was generated with Azure Functions Core Tools.
To deploy it to Azure, you can use the button below or clone the repository and publish using Azure Functions Core Tools from vscode or CLI.
After publishing, use the resize function from endpoint, i.e.:
https://yourfunctionname.azurewebsites.net/api/resize?url=IMAGEURL&h=120
YOURFUNCTIONENDPOINT?url=IMAGEURL&h=RESIZEHEIGHT[&cache=SECONDSTOCACHE]
The image URL that you want to resize.
The height of resized image.
For now, this function only supports proportinal resizing. Passing the height parameter will calculate automatically the new image witdh.
A time in seconds to respond with Cache-Control header.
Example: &cache=7200 will force HTTP Response to include header Cache-Control: max-age=7200 (2 hours).
Built with Jimp and Azure Functions Middlewares ❤.
Licensed under MIT License.
