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?
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.
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
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
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,
is working on a reply...