Hello Everyone, in this reposirotry you are looking at a asp.net middleware thats used for manipulating images on the fly like imageflow. you just have to download this from here and build for your self or you can just download this to your project using nuget (chamod.ImageServer).
- Install From Nuget or Download and build.
- Reference the dll if you build from source.
- Before Static File Middleware Add line =>app.UseImageServerMiddleware(Directory.GetCurrentDirectory(),30);
- Change MaxCacheTime by changing 30 to whatever you want.
- You can change image size by passing "h" & "w" by as query parameters. eg: (/images/pic1.jpg?w=100)
- you can set quality while operations by passing "q" as query parameters (0-100). eg: (/images/pic1.jpg?w=100&q=90)
- you can set rotation degrees (clockwise) by providing "r" as query parameters (0-360). eg: (/images/pic1.jpg?w=100&q=90&r=60)
Only Following Image Types are Supported as inputs for now.
- png
- jpg
- jpeg
- gif
- tiff
- ico
- bmp
It will be always WebP when output for now.
Thankyou Happy Coding.!