Copied to clipboard

Flag this post as spam?

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


  • Jonathan Roberts 409 posts 1063 karma points
    Nov 02, 2022 @ 09:56
    Jonathan Roberts
    0

    ImageProcessor Common Exceptions ImageProcessingException Clogging up Error log

    Hi,

    We are getting hundreds if not thousands of these errors in the Error log of the 8.17 CMS:

    ImageProcessor.Common.Exceptions.ImageProcessingException: Error processing image with Resize ---> ImageProcessor.Common.Exceptions.ImageProcessingException: Error processing image with Resizer ---> System.InvalidOperationException: Target width 0 and height 0 must be greater than zero

    Is there a way to fix this or at least hide the errors?

    Thanks

  • phudangthe 2 posts 22 karma points
    Mar 16, 2023 @ 07:03
    phudangthe
    0

    Hi All,

    I'm facing the same issue, does anyone has any idea related to this issue?

    "ImageProcessor.Common.Exceptions.ImageProcessingException: Error processing image with Resize ---> ImageProcessor.Common.Exceptions.ImageProcessingException: Error processing image with Resizer ---> System.InvalidOperationException: Target width 0 and height 0 must be greater than zero.\r\n at ImageProcessor.Imaging.ResizeHelper.CalculateTargetLocationAndBounds(Size sourceSize, ResizeLayer options, Int32 width, Int32 height)\r\n at ImageProcessor.Imaging.Resizer.ResizeImage(Image source, Boolean linear)\r\n --- End of inner exception stack trace ---\r\n at ImageProcessor.Imaging.Resizer.ResizeImage(Image source, Boolean linear)\r\n at ImageProcessor.Processors.Resize.ProcessImage(ImageFactory factory)\r\n --- End of inner exception stack trace ---\r\n at ImageProcessor.Processors.Resize.ProcessImage(ImageFactory factory)\r\n at ImageProcessor.Imaging.Formats.FormatBase.ApplyProcessor(Func`2 processor, ImageFactory factory)\r\n at ImageProcessor.Web.ImageFactoryExtensions.AutoProcess(ImageFactory factory, IWebGraphicsProcessor[] graphicsProcessors)\r\n at ImageProcessor.Web.HttpModules.ImageProcessingModule.

    Thanks, Phu

  • phudangthe 2 posts 22 karma points
    Mar 16, 2023 @ 07:29
    phudangthe
    0

    Hi All,

    I think the root cause due to there are requests in crop mode without width and height like below

    https://dev.newheroes.com/media/1080/10bbh2le2ill_final.png?mode=crop

    and we got error "Target width 0 and height 0 must be greater than zero"

    Reference this link: https://our.umbraco.com/forum/using-umbraco-and-getting-started/80890-imageprocessor-error-could-not-be-understood-by-the-server-due-to-malformed-syntax

    Thanks,

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" button below.

    Continue discussion

Please Sign in or register to post replies