.net Image Resize
来源:互联网 发布:淘宝外国模特 编辑:程序博客网 时间:2024/06/06 02:09
nuget install ImageResizer.Plugins.DiskCache 3.4.3
nuget upgrade ImageResizer.dll to 3.4.3
nuget install ImageResizer.Plugins.SimpleFilters
Web Config
<?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>
<system.web>
<compilation debug="true" targetFramework="4.5.2" />
<httpRuntime targetFramework="4.5.2" />
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<modules>
<!-- This is for IIS7+ Integrated mode -->
<add name="ImageResizingModule" type="ImageResizer.InterceptModule" />
</modules>
</system.webServer>
<resizer>
<plugins>
<add name="DiskCache" />
<!-- Add Presets plugin (v3.1+) -->
<!-- http://www.imageresizing.net/plugins/presets -->
<add name="Presets" />
<add name="SimpleFilters" /></plugins>
<presets onlyAllowPresets="false">
<preset name="S" defaults="width=200;height=200;mode=crop;format=jpg;quality=70;anchor=middlecenter;scale=both" />
<preset name="M" defaults="width=400;height=400;mode=crop;format=jpg;quality=65;anchor=middlecenter;scale=both" />
<preset name="L" defaults="width=800;height=800;mode=crop;format=jpg;quality=60;anchor=middlecenter;scale=both" />
</presets>
<!-- See http://www.imageresizing.net/plugins/diskcache for details. Avoid changing these settings -->
<diskCache dir="~/imagecache" autoClean="false" hashModifiedDate="true" enabled="true" subfolders="32" cacheAccessTimeout="15000" />
</resizer>
</configuration>
访问图片
?preset=l
?preset=s&s.grayscale=true
- .net Image Resize
- Image resize
- resize image
- Pop Open Image and Resize Window in ASP.net
- image to resize bmp
- ios image resize
- ios image resize
- OpenCV Resize image
- IDL congrid: resize the image
- xenserver VDI(Virtual disk Image) resize
- Resize png/jpg image in Symbian
- gid plus resize image file size
- resize
- resize
- HTML Image Auto Resize, HTML图片大小自动调整
- IOS Dev Intro - Resize image in ios programatically
- Image Resize 双线性和双立方插值法
- .NET寻根问底之窗体Resize事件
- 动态代理和静态代理
- Tiny框架 迁移到orcale上
- 解决Duilib开源库中字符&被解析成下划线的问题
- NSString获取子字符串
- apacheActiveMQ(一)
- .net Image Resize
- mysql 字符串连接 concat、gropu_concat用法
- JavaWeb之JSP
- qt creator编译opus库
- 五星填数与深度优先搜索回溯思想
- numpy初始化数组时遇到的问题
- 【Android 】Dalvik虚拟机和JVM虚拟机的区别
- 在myeclipse中如何让console最小化成一个图标
- Unix环境高级编程(阅读笔记)-----kill、raise、alarm、pause函数