遗忘海岸

江湖程序员 -Feiph(LM战士)

导航

ImageResizer 3.4.3配置

<?xml version="1.0" encoding="utf-8"?>

<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->

<configuration>
  <configSections>
    <section name="resizer" type="ImageResizer.ResizerSection,ImageResizer"  requirePermission="false" />
  </configSections>


  <connectionStrings>
    <add name="ConnString" connectionString="data source=192.168.9.5;initial catalog=JUTADB;persist security info=True;user id=sa;password=admin;multipleactiveresultsets=True;" />
    <add name="JTTADBEntities" connectionString="metadata=res://*/SportDB.csdl|res://*/SportDB.ssdl|res://*/SportDB.msl;provider=System.Data.SqlClient;provider connection string=&quot;data source=192.168.9.5;initial catalog=JUTADB;persist security info=True;user id=sa;password=admin;multipleactiveresultsets=True;App=EntityFramework&quot;" providerName="System.Data.EntityClient" />
  </connectionStrings>
  <appSettings>

  </appSettings>

  <resizer>
    <!-- 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 -->
    <pipeline fakeExtensions=".ashx" />

    <plugins>

      <add name="VirtualFolder" virtualPath="~/Files" physicalPath="Files\"/>
      <add name="Watermark" />
      <add name="DiskCache" />
      <add name="MemCache" />


      <!-- <add name="PrettyGifs" /> -->
    </plugins>
    <watermarks>
      <otherimages path="~/watermarks" right="20" bottom="20" width="20" height="20" />
      <image name="test1" path="~/watermarks/Sun_64.png" imageQuery="filter=alpha(0.5)&amp;rotate=45" top="0" left="0" />
      <text name="test2" text="Hello #{name}!" vertical="true" align="topright" />
      <image name="gradientbg" path="~/gradient.png" drawAs="background" imageQuery="color1=black&amp;color2=white&amp;angle=45" top="0" right="0" left="0" bottom="0" />
      <group name="storyBG">
        <image path="~/watermarks/Sun_64.png" align="topleft" width="100%" height="100%" relativeTo="canvas" drawAs="Background"></image >
      </group>
    </watermarks>
    <diskcache dir="~/imgcache" subfolders="256">
    </diskcache>
  </resizer>

  <system.web>
    <compilation debug="true" targetFramework="4.0" >
      <assemblies>
        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"/>
      </assemblies>
    </compilation>

    <httpRuntime requestValidationMode="2.0"   maxRequestLength="100000" useFullyQualifiedRedirectUrl="true" executionTimeout="450" />

    <globalization  requestEncoding="utf-8" responseEncoding="utf-8"/>
    <pages  controlRenderingCompatibilityVersion="3.5" enableViewState="true" clientIDMode="Static">
      <controls>
        <add tagPrefix="fs" assembly="F.Studio.WebControls" namespace="F.Studio.WebControls"/>
      </controls>

    </pages>

    <httpModules>
      <!-- This is for IIS5, IIS6, and IIS7 Classic, and Cassini/VS Web Server-->
      <add name="ImageResizingModule" type="ImageResizer.InterceptModule"/>
    </httpModules>
    <!-- IIS 6设置
        <httpHandlers>
          <add verb="*" path="*.hxl" type="Xiucai.Common.ValidateCode.VcodePage" />
          <add path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler, dotless.Core" />
        </httpHandlers>-->

  </system.web>
  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <!-- This is for IIS7+ Integrated mode -->
      <add name="ImageResizingModule" type="ImageResizer.InterceptModule"/>
    </modules>

    <httpProtocol>
      <customHeaders>
        <add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Methods" value="*" />
        <add name="Access-Control-Allow-Headers" value="content-type" />
      </customHeaders>
    </httpProtocol>


    <!--<handlers>
            <add name="validateCode" verb="*" path="*.hxl" type="Xiucai.Common.ValidateCode.VcodePage" />
            <add name="dotless" path="*.less" verb="GET" type="dotless.Core.LessCssHttpHandler,dotless.Core" resourceType="File" preCondition="" />
        </handlers>-->

  </system.webServer>


  <runtime>

    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

      <dependentAssembly>



      </dependentAssembly>

    </assemblyBinding>

  </runtime>

</configuration>
View Code

 

posted on 2015-05-28 17:16  遗忘海岸  阅读(1122)  评论(0编辑  收藏  举报