Configuration Reference

Configuration Reference

The following is a basic, typical configuration of v4.

  <?xml version="1.0" encoding="utf-8" ?>
      <section name="resizer" type="ImageResizer.ResizerSection,ImageResizer"  requirePermission="false" />

      <!-- Unless you (a) use Integrated mode, or (b) map all reqeusts to ASP.NET, 
           you'll need to add .ashx to your image URLs: image.jpg.ashx?width=200&height=20 
           Optional - this is the default setting -->
      <pipeline fakeExtensions=".ashx" defaultCommands="autorotate.default=true" />

        <add name="DiskCache" />
        <add name="PrettyGifs" />

        <!-- This is for IIS7/8 Classic and Cassini-->
        <add name="ImageResizingModule" type="ImageResizer.InterceptModule"/>

      <validation validateIntegratedModeConfiguration="false"/>
        <!-- This is for IIS7/8 Integrated mode -->
        <add name="ImageResizingModule" type="ImageResizer.InterceptModule"/>