Skip to content

chammaofficial/DOTNET-CORE-IMAGE-SERVER

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

ASP.NET Middleware for Transform Images on the fly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published