Wondering if anyone can help. We have a big site balanced on two servers. Everything appears to be stable, but the trace logs are displaying the following on multiple images:
ERROR Umbraco.Core.UmbracoApplicationBase - An unhandled exception occurred
ImageProcessor.Common.Exceptions.ImageProcessingException: Error processing image with Crop ---> System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at ImageProcessor.Processors.Crop.ProcessImage(ImageFactory factory)
--- End of inner exception stack trace ---
at ImageProcessor.Processors.Crop.ProcessImage(ImageFactory factory)
at ImageProcessor.Imaging.Formats.FormatBase.ApplyProcessor(Func`2 processor, ImageFactory factory)
at ImageProcessor.Web.ImageFactoryExtensions.AutoProcess(ImageFactory factory, String queryString)
at ImageProcessor.Web.HttpModules.ImageProcessingModule.<ProcessImageAsync>d__b.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
at System.Web.HttpApplication.AsyncEventExecutionStep.OnAsyncEventCompletion(IAsyncResult ar)
These multiple errors seem to only be present on the supporting servers and not on the master server. Any advice is most welcome.
Did you have any luck in fixing the above? We've started to get the same error on 7.4.3. Not load balanced - For us it appears that for some reason media urls are coming out with '&' instead of '&' in querystring which is causing throwing the error
Regarding Chris' reply, you can use Url.GetCropUrl and provide false for the htmlEncode parameter. I was having this issue when using crop url for CSS background-images.
Error processing image cropper on Umbraco 7.4.1
Wondering if anyone can help. We have a big site balanced on two servers. Everything appears to be stable, but the trace logs are displaying the following on multiple images:
These multiple errors seem to only be present on the supporting servers and not on the master server. Any advice is most welcome.
Did you have any luck in fixing the above? We've started to get the same error on 7.4.3. Not load balanced - For us it appears that for some reason media urls are coming out with '&' instead of '&' in querystring which is causing throwing the error
I'm getting the same issue on 7.4
Regarding Chris' reply, you can use
Url.GetCropUrl
and providefalse
for thehtmlEncode
parameter. I was having this issue when using crop url for CSSbackground-image
s.http://issues.umbraco.org/issue/U4-7223
https://github.com/umbraco/UmbracoDocs/pull/262#issuecomment-169001480
is working on a reply...