遗忘海岸

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

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

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   遗忘海岸  阅读(1124)  评论(0编辑  收藏  举报

编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· .NET周刊【3月第1期 2025-03-02】
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· [AI/GPT/综述] AI Agent的设计模式综述
历史上的今天:
2013-05-28 (绝对干货)发布一个升级下载程序(不光免费而且带代码跟详细说明)
2010-05-28 通过gridview.DataSouce=ds绑定数据时GridViewDeleteEventArgs e 的key为空
点击右上角即可分享
微信分享提示