Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Allan 42 posts 192 karma points
    Apr 08, 2016 @ 12:41

    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:

    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.

  • Chris 1 post 21 karma points
    May 19, 2016 @ 10:15

    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

  • Nick Renny 31 posts 63 karma points
    Jul 18, 2016 @ 16:35
    Nick Renny

    I'm getting the same issue on 7.4

  • Jacob Alvarez 7 posts 98 karma points
    Jul 19, 2016 @ 19:01
    Jacob Alvarez

    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.

Please Sign in or register to post replies

Write your reply to: