C# Class ImageMagick.Web.Handlers.ImageOptimizerHandler

IHttpHandler that can be used to optimize image before they are written to the response.
Inheritance: MagickHandler
Mostra file Open project: dlemstra/Magick.NET

Protected Methods

Method Description
OptimizeFile ( string fileName ) : void

Optimizes the specified file.

WriteFile ( HttpContext context ) : void

Writes the file to the response.

Private Methods

Method Description
CanOptimize ( MagickFormatInfo formatInfo ) : bool
CreateOptimizedFile ( string cacheFileName ) : void
GetOptimizedFileName ( ) : string
ImageOptimizerHandler ( IUrlResolver urlResolver, MagickFormatInfo formatInfo ) : System.IO

Method Details

OptimizeFile() protected static method

Optimizes the specified file.
protected static OptimizeFile ( string fileName ) : void
fileName string
return void

WriteFile() protected method

Writes the file to the response.
protected WriteFile ( HttpContext context ) : void
context System.Web.HttpContext
return void