Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 1.39 KB

README.md

File metadata and controls

51 lines (40 loc) · 1.39 KB

ASP.NET Core Image Serving Middleware 1.0.0

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).

Installation

  1. Install From Nuget or Download and build.
  2. Reference the dll if you build from source.
  3. Before Static File Middleware Add line =>app.UseImageServerMiddleware(Directory.GetCurrentDirectory(),30);
  4. Change MaxCacheTime by changing 30 to whatever you want.

Usage

  • 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)

Notes

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.!