图像未调整大小,日志显示“getMediaStream”管道错误

时间:2017-02-01 17:37:05

标签: sitecore sitecore7.2

上传到媒体库的图片大小为1000x1000,每当我尝试使用 mw mh 参数访问这些图像时,我会记录错误并且图像不是重新调整大小但原始服务。

   ERROR Could not run the 'getMediaStream' pipeline for '/sitecore/media library/BannerAssets/FebBanners/mybanner'. Original media data will be used.
    Exception: System.FormatException
    Message: Input string was not in a correct format.
    Source: mscorlib
       at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
       at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
       at Sitecore.Configuration.Settings.GetIntSetting(String name, Int32 defaultValue)
       at Sitecore.Resources.Media.TransformationOptions..ctor()
       at Sitecore.Resources.Media.MediaOptions.GetTransformationOptions()
       at Sitecore.Resources.Media.ResizeProcessor.Process(GetMediaStreamPipelineArgs args)
       at (Object , Object[] )
       at Sitecore.Pipelines.CorePipeline.Run(PipelineArgs args)
       at Sitecore.Resources.Media.Media.GetStreamFromPipeline(MediaOptions options, Boolean& canBeCached)

示例网址:   mydomain.com/~/media/mydit/product%20images/v/clock.png?sc_revision=bw91698947a6620893461de1aec28fdf&mw=150&mh=150

从服务器中删除旧的PNGCrush.config文件后,

更新:已修复。

1 个答案:

答案 0 :(得分:0)

通过从服务器中删除旧的PNGCrush.config文件来修复。