ImageResizer 诊断插件 (resizer.debug)

Posted

技术标签:

【中文标题】ImageResizer 诊断插件 (resizer.debug)【英文标题】:ImageResizer Diagnotics plugin (resizer.debug) 【发布时间】:2021-10-03 08:04:33 【问题描述】:

你好 ***

我有一个问题

你能告诉我什么是调整大小吗?调试和服务器上这个文件有什么风险我在服务器上发现这个日志有什么风险?为什么这个日志在这里? 您能告诉我有关此 resizer.debug 的信息吗?谢谢

**

Registered plugins:

ImageResizer.Plugins.Basic.DefaultEncoder
ImageResizer.Plugins.Basic.NoCache
ImageResizer.Plugins.Basic.ClientCache
ImageResizer.Plugins.Basic.WebConfigLicenseReader
ImageResizer.Plugins.Basic.Diagnostic
ImageResizer.Plugins.Basic.SizeLimiting
ImageResizer.Plugins.Basic.MvcRoutingShimPlugin
ImageResizer.Plugins.Basic.LicenseDisplay
ImageResizer.Plugins.EPiServerBlobReader.EPiServerBlobReaderPlugin
ImageResizer.Plugins.DiskCache.DiskCache
ImageResizer.Plugins.LicenseVerifier.LicenseEnforcer`1[ImageResizer.Plugins.DiskCache.DiskCache]

Accepted querystring keys:

Accepted file extensions:

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

Environment information:

Running Microsoft-IIS/10.0 on Microsoft Windows NT 10.0.14393.0 and CLR 4.0.30319.42000
Trust level: Unrestricted
OS bitness: AMD64
Executing assembly: D:\Windows\system32\inetsrv\w3wp.
IntegratedPipeline: True

Installed HttpModules: 

System.Web.Caching.OutputCacheModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a          (under key OutputCache)
Microsoft.AspNet.SessionState.SessionStateModuleAsync, 

                    
System.Xml                               File: 4.8.3761.0 (4.0.0.0)      Informational: 4.8.3761.0                     
System.Core                              File: 4.8.4330.0 (4.0.0.0)      Informational: 4.8.4330.0                     
Microsoft.Configuration.ConfigurationBuilders.Azure File: 1.0.30709.0 (1.0.0.0)     Informational: 1.0.2-30709                    
Microsoft.Configuration.ConfigurationBuilders.Base File: 1.0.30709.0 (1.0.0.0)     Informational: 1.0.2-30709                    
Microsoft.Azure.Services.AppAuthentication File: 1.0.3.0 (1.0.3.0)         Informational:                                
Microsoft.Azure.KeyVault                 File: 2.3.2.0 (2.0.0.0)         Informational: 2.3.2                          
Microsoft.Rest.ClientRuntime             File: 2.3.20.0 (2.0.0.0)        Informational: 2.3.20                         
Microsoft.Rest.ClientRuntime.Azure       File: 3.3.7.0 (3.0.0.0)         Informational: 3.3.7                          
Newtonsoft.Json                          File: 12.0.3.23909 (12.0.0.0)   Informational: 12.0.3+7c3d7f8da7e35dde8fa74188b0decff70f8f10e3  
System.Net.Http                          File: 4.8.3761.0 (4.0.0.0)      Informational: 4.8.3761.0                     
System.Net.Http.WebRequest               File: 4.8.3761.0 (4.0.0.0)      Informational: 4.8.3761.0                     
System.Runtime.Serialization             File: 4.8.4261.0 (4.0.0.0)      Informational: 4.8.4261.0                     
SMDiagnostics                            File: 4.8.4261.0 (4.0.0.0)      Informational: 4.8.4261.0                     
System.ServiceModel.Internals            File: 4.8.4261.0 (4.0.0.0)      Informational: 4.8.4261.0                     
System.Numerics                          File: 4.8.3761.0 (4.0.0.0)      Informational: 4.8.3761.0                     
System.Data                              File: 4.8.4290.0 (4.0.0.0)      Informational: 4.8.4290.0                     
Microsoft.Web.Compilation.Snapshots      File: 1.1.0.0 (1.0.0.0)         Informational:                                
Microsoft.JScript                        File: 14.8.3761.0 (10.0.0.0)    Informational: 14.8.3761.0                    
System.Web.WebPages                      File: 3.0.30128.0 (3.0.0.0)     Informational: 3.0.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)  
System.Web.Mvc                           File: 5.2.30128.0 (5.2.3.0)     Informational: 5.2.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)  
System.Web.WebPages.Deployment           File: 3.0.30128.0 (3.0.0.0)     Informational: 3.0.3-30128 (0e974218e12a67d4b1f25422119e40cfe6953e46)  

```   **

【问题讨论】:

【参考方案1】:

Image Resizer 提供了一组用于配置图像属性的工具。

resizer.debugresizer.debug.ashx 帮助您了解配置和插件安装问题,提供 ImageResizer 的自我诊断页面。如果您的本地网站在http://localhost:5000/ 运行,那么您应该浏览到http://localhost:5000/resizer.debug.ashx 以访问它。

欲了解更多信息,您可以查看TroubleShooting page。

【讨论】:

以上是关于ImageResizer 诊断插件 (resizer.debug)的主要内容,如果未能解决你的问题,请参考以下文章

text ImageResizer诊断输出

Azure CDN 不接受 C# 中 Imageresizer 插件的查询字符串参数

Swift 5 MacOS Image Resize 内存问题

imageresizer if-modified-since 支持

ImageResizer - 将图像保存为更大尺寸

text ImageResizer Web.Config条目