0

我正在使用图像调整器来调整亚马逊图像的大小。

我没有收到任何错误,但我也无法调整图像大小。

我试图直接打开图像网址,它也没有显示任何错误。

我也在 Visual Studio Web 服务器上使用它,所以 IIS 不是问题。

我正在使用 MVC 并已正确安装 MvcRoutingShim 插件。

我正在尝试将图像的大小从 height = 600 调整为 height = 100 但它不起作用。

我的 Disgnostics 输出如下

    Image resizer diagnostic sheet      4/2/2013 11:52:23 AM

    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 using paid bundles: Cloud Bundle

    Registered plugins:

    ImageResizer.Plugins.Basic.DefaultEncoder
    ImageResizer.Plugins.Basic.NoCache
    ImageResizer.Plugins.Basic.ClientCache
    ImageResizer.Plugins.Basic.Diagnostic
    ImageResizer.Plugins.Basic.SizeLimiting
    ImageResizer.Plugins.MvcRoutingShim.MvcRoutingShimPlugin
    ImageResizer.Plugins.S3Reader.S3Reader

    Configuration:

    <resizer>
      <pipeline fakeExtensions=".ashx" />
      <plugins>
        <add name="MvcRoutingShim" />
        <add name="S3Reader" buckets="refp" />
      </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/7.5 on Microsoft Windows NT 6.1.7601 Service Pack 1 and CLR 4.0.30319.296
    Trust level: Unrestricted
    OS bitness: AMD64
    Executing assembly: c:\windows\system32\inetsrv\w3wp.exe
    IntegratedPipeline: True

    Loaded assemblies:

    mscorlib                                 Assembly: 4.0.0.0         File: 4.0.30319.296   Info: 4.0.30319.296
    System.Web                               Assembly: 4.0.0.0         File: 4.0.30319.272   Info: 4.0.30319.272
    System                                   Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
    System.Core                              Assembly: 4.0.0.0         File: 4.0.30319.233   Info: 4.0.30319.233
    System.Xml                               Assembly: 4.0.0.0         File: 4.0.30319.233   Info: 4.0.30319.233
    System.Data.SqlXml                       Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Configuration                     Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    Microsoft.Build.Utilities.v4.0           Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Runtime.Caching                   Assembly: 4.0.0.0         File: 4.0.30319.237   Info: 4.0.30319.237
    System.Web.RegularExpressions            Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Data                              Assembly: 4.0.0.0         File: 4.0.30319.237   Info: 4.0.30319.237
    System.Numerics                          Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Transactions                      Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.EnterpriseServices                Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    Microsoft.Build.Framework                Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    Microsoft.JScript                        Assembly: 10.0.0.0        File: 10.0.30319.296  Info: 10.0.30319.296
    System.Web.Mvc                           Assembly: 3.0.0.0         File: 3.0.20105.0
    System.Web.WebPages.Deployment           Assembly: 1.0.0.0         File: 1.0.20105.407
    System.Web.WebPages                      Assembly: 1.0.0.0         File: 1.0.20105.407
    Microsoft.Web.Infrastructure             Assembly: 1.0.0.0         File: 1.0.20105.407
    System.Web.WebPages.Razor                Assembly: 1.0.0.0         File: 1.0.20105.407
    System.Web.Razor                         Assembly: 1.0.0.0         File: 1.0.20105.407
    System.ComponentModel.DataAnnotations    Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Data.Linq                         Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Web.Extensions                    Assembly: 4.0.0.0         File: 4.0.30319.272   Info: 4.0.30319.272
    App_Code.2uqj4rtu                        Assembly: 0.0.0.0
    App_global.asax.eogwkngg                 Assembly: 0.0.0.0
    FluentValidation.Mvc                     Assembly: 3.2.0.0         File: 3.2.0.0
    EntityFramework                          Assembly: 4.1.0.0         File: 4.1.10331.0     Info: 4.1.10331.0
    System.Data.Entity                       Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Xml.Linq                          Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Runtime.Serialization             Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    Anonymously Hosted DynamicMethods Assembly Assembly: 0.0.0.0
    System.Data.OracleClient                 Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    FluentValidation                         Assembly: 3.2.0.0         File: 3.2.0.0
    Cassette                                 Assembly: 2.0.0.17974     File: 2.0.0.0         Info: 2.0.0
    EntityFrameworkDynamicProxies-EntityFramework Assembly: 1.0.0.0
    System.ServiceModel.Activation           Assembly: 4.0.0.0         File: 4.0.30319.233   Info: 4.0.30319.233
    System.Runtime.DurableInstancing         Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.ServiceModel                      Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
    SMDiagnostics                            Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Xaml.Hosting                      Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    Elmah                                    Assembly: 1.2.13605.0     File: 1.2.13605.2128
    Cassette.Aspnet                          Assembly: 2.0.0.17975     File: 2.0.0.0         Info: 2.0.0
    Microsoft.CSharp                         Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Web.Services                      Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Drawing                           Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
    System.IdentityModel                     Assembly: 4.0.0.0         File: 4.0.30319.1001  Info: 4.0.30319.1001
    System.ServiceModel.Web                  Assembly: 4.0.0.0         File: 4.0.30319.233   Info: 4.0.30319.233
    System.Activities                        Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.ServiceModel.Activities           Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.WorkflowServices                  Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Data.DataSetExtensions            Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Web.DynamicData                   Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Web.ApplicationServices           Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    AjaxMin                                  Assembly: 4.60.4609.17023
    AWSSDK                                   Assembly: 1.5.16.1        File: 1.5.16.1
    Cassette.Views                           Assembly: 2.0.0.17975     File: 2.0.0.0         Info: 2.0.0
    ImageResizer                             Assembly: 3.3.3.123       File: 3.3.3.123       Info: 3-3-3  Commit: c368317
    ImageResizer.Mvc                         Assembly: 3.3.3.123       File: 3.3.3.123       Info: 3-3-3  Commit: c368317
    ImageResizer.Plugins.S3Reader            Assembly: 3.3.3.123       File: 3.3.3.123       Info: 3-3-3  Commit: c368317
    librets-dotnet                           Assembly: 0.0.0.0
    LinqKit                                  Assembly: 1.0.0.0         File: 1.0.0.0
    Newtonsoft.Json                          Assembly: 4.5.0.0         File: 4.5.3.14814
    System.Web.Abstractions                  Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Web.Helpers                       Assembly: 1.0.0.0         File: 1.0.20105.407
    System.Web.Routing                       Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1
    System.Web.Mobile                        Assembly: 4.0.0.0         File: 4.0.30319.1     Info: 4.0.30319.1

我试图调整图像大小的网址是https://s3.amazonaws.com/refp/property/802/802_1.jpeg?height=100

请帮忙。

来源:http: //imageresizing.net/plugins/s3reader

4

1 回答 1

1

只需更改网址

https://s3.amazonaws.com/refp(bucketname)/property(foldername)/802(foldername)/802_1.jpeg?height=100 

http://youraspnetserver/s3/refp(bucketname)/property(foldername)/802(foldername)/802_1.jpeg?height=100

URL 总是需要指向您的 .NET 服务器,而不是 S3 blob,因为 Amazon 的 S3 服务器只是静态文件服务器,不能做任何动态的事情。

于 2013-04-18T12:53:57.497 回答