https://github.com/alex-titarenko/imageresizer
Resize and cache images from the web on the fly (Azure Function V3)
https://github.com/alex-titarenko/imageresizer
azure-functions netcore3
Last synced: 4 months ago
JSON representation
Resize and cache images from the web on the fly (Azure Function V3)
- Host: GitHub
- URL: https://github.com/alex-titarenko/imageresizer
- Owner: alex-titarenko
- License: mit
- Created: 2015-02-24T22:06:39.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2024-04-15T20:25:27.000Z (about 2 years ago)
- Last Synced: 2025-04-12T16:12:44.262Z (about 1 year ago)
- Topics: azure-functions, netcore3
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 5
- Watchers: 0
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ImageResizer Service
Resize and cache images from the web on the fly (Azure Function V3).
## Structure of request
```
{service_url}/api/resizeimage?url={image_url}&size={image_size}
```
*image_url* - an URL for image to resizing (can be encoded in base64 format).
*image_size* - size in pixels: `width x height` or some of preset values (Small, Medium, Detail, Original)
## Examples of usage
```
http://images.example.com?url=https://www.google.com.ua/images/srpr/logo11w.png&size=200x150
http://images.example.com?url=https://www.google.com.ua/images/srpr/logo11w.png&size=medium
http://images.example.com?url=https://www.google.com.ua/images/srpr/logo11w.png&size=original
http://images.example.com?url=base64:aHR0cHM6Ly93d3cuZ29vZ2xlLmNvbS51YS9pbWFnZXMvc3Jwci9sb2dvMTF3LnBuZw==&size=original
```
## Configuration (local.settings.json or environment variables)
* **SmallSize** - size in pixels for Small predefined value.
* **MediumSize** - size in pixels for Medium predefined value.
* **DetailSize** - size in pixels for Detail predefined value.
* **UserAgent** - user agent string for downloaded images.
* **ClientCache:MaxAge** - time span of client cache max age.
## License
ImageResizer is under the [MIT license](LICENSE.md).