Image Resizer - Web.config

The image resizer is implemented as an HttpModule. URL authorization is performed by .NET prior to any URL rewriting, and also by the image resizer afterwards. This ensures no holes in URL authorization are created. For best performance,  *all* file serving work is done by IIS. The cached image is first written to disk, allowing a simple RewritePath call to pass the work to IIS. This eliminates all the threads that would otherwise be hanging around, using memory. The same code can now be used for both IIS5, 6, 7 classic and 7 integrated. The httpModules section handles IIS5/6/7c, and the modules section handles IIS7 integrated mode.
    <add name="ImageResizer" type="fbs.ImageResizer.InterceptModule"/>
  <validation validateIntegratedModeConfiguration="false"/>
    <add name="ImageResizer" type="fbs.ImageResizer.InterceptModule"/>

Published on

About Nathanael

Nathanael Jones is a software engineer, father, consultant, and computer linguist with unreasonably high expectations of inanimate objects. He refines .NET, ruby, and javascript libraries full-time at Imazen, but can often be found on stack overflow or participating in W3C community groups.


If you develop websites, and those websites have images, ImageResizer can make your life much eaiser. Find out more at


I run Imazen, a tiny software company that specializes in web-based image processing and other difficult engineering problems. I spend most of my time writing image-processing code in C#, web apps in Ruby, and documentation in Markdown. Check out some of my current projects.

More articles