0

我刚刚在 IIS6 .NET2 上安装了 imageresizer 并下载了 JCropExample2 示例项目。我没有收到任何错误,但是 a:图像不会在页面加载时调整大小,并且 b:裁剪不起作用。没有显示错误。我是 .NET 的新手,所以真的不确定我错过了什么??

ImageResizer 调试:

2 Issues detected:

(Warning):  To potentially see additional errors here, perform an image resize request.


(Warning):  NoCache is only for development usage, and cannot scale to production use.
            Add DiskCache or CloudFront for production use


You are not using any paid bundles.

Registered plugins:

ImageResizer.Plugins.Basic.DefaultEncoder
ImageResizer.Plugins.Basic.NoCache
ImageResizer.Plugins.Basic.ClientCache
ImageResizer.Plugins.Basic.Diagnostic
ImageResizer.Plugins.Basic.SizeLimiting

Configuration:

<resizer>
<pipeline fakeExtensions=".ashx" />
<plugins />
</resizer>


Accepted querystring keys:

quality, format, thumbnail, maxwidth, maxheight, width, height, w, h, scale, stretch, crop, cropxunits, cropyunits, page, bgcolor, rotate, flip, sourceFlip, sFlip, sRotate, borderWidth, borderColor, paddingWidth, paddingColor, ignoreicc, frame, useresizingpipeline, cache, process, margin, anchor, dpi, mode, zoom, 

Accepted file extensions:

bmp, gif, exif, png, tif, tiff, tff, jpg, jpeg, jpe, jif, jfif, jfi, 

Environment information:

Running Microsoft-IIS/6.0 on Microsoft Windows NT 5.2.3790 Service Pack 2 and CLR 2.0.50727.3634
Trust level: Unrestricted
OS bitness: x86
Executing assembly: c:\windows\system32\inetsrv\w3wp.exe
IntegratedPipeline: False

Loaded assemblies:

mscorlib                                 Assembly: 2.0.0.0         File: 2.0.50727.3634  Info: 2.0.50727.3634
System.Web                               Assembly: 2.0.0.0         File: 2.0.50727.3634  Info: 2.0.50727.3634
System                                   Assembly: 2.0.0.0         File: 2.0.50727.3634  Info: 2.0.50727.3634
System.Xml                               Assembly: 2.0.0.0         File: 2.0.50727.3082  Info: 2.0.50727.3082
System.Configuration                     Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.Data                              Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.Web.RegularExpressions            Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
Microsoft.JScript                        Assembly: 8.0.0.0         File: 8.0.50727.3053  Info: 8.0.50727.3053
System.Web.Mobile                        Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.ServiceModel                      Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636
System.Web.Services                      Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
System.Drawing                           Assembly: 2.0.0.0         File: 2.0.50727.3639  Info: 2.0.50727.3639
System.EnterpriseServices                Assembly: 2.0.0.0         File: 2.0.50727.3053  Info: 2.0.50727.3053
ImageResizer                             Assembly: 3.2.3.302       File: 3.2.3.302       Info: 3-2-beta-3  Commit: 245e873
System.ServiceModel.Web                  Assembly: 3.5.0.0         File: 3.5.594.1152    Info: 3.5.594.1152
System.WorkflowServices                  Assembly: 3.5.0.0         File: 3.5.594.1152    Info: 3.5.594.1152
System.Runtime.Serialization             Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636
System.IdentityModel                     Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636
SMDiagnostics                            Assembly: 3.0.0.0         File: 3.0.4506.3636   Info: 3.0.4506.3636
4

1 回答 1

1

它工作正常。您未能阅读主页上的第 3 步,共 3 步

<!-- 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" />

当您使用没有集成模式的 IIS6 时,您必须使用 .jpg.ashx 语法。

http://resizer.puremobi.com/JCropExample2/fountain-small.jpg.ashx?width=400

于 2012-07-11T02:41:47.723 回答