-
-
Notifications
You must be signed in to change notification settings - Fork 438
Closed
Milestone
Description
Magick.NET version
14.4.0
Environment (Operating system, version and so on)
Windows Server 2022, ASP.NET 9.0, C#
Description
I changed from 14.2.0 to 14.5.0.
Now I receive:
ImageMagick.MagickImageErrorException: width or height exceeds limit "Schutzvermerk Sammlung JORE" (33554431x33554431) @ error/cache.c/OpenPixelCache/3692
at ImageMagick.MagickExceptionHelper.Check(IntPtr exception) in /_/src/Magick.NET/Exceptions/MagickExceptionHelper.cs:line 18
at ImageMagick.NativeHelper.CheckException(IntPtr exception) in /_/src/Magick.NET/Native/NativeHelper.cs:line 20
at ImageMagick.MagickImage.NativeMagickImage.Rotate(Double degrees) in /_/src/Magick.NET/Generated/Magick.NET.SourceGenerator/ImageMagick.SourceGenerator.NativeInteropGenerator/MagickImage.g.cs:line 6167
at ImageMagick.MagickImage.CloneMutator.Rotate(Double degrees) in /_/src/Magick.NET/MagickImage.CloneMutator.cs:line 467
at ImageMagick.MagickImage.Rotate(Double degrees) in /_/src/Magick.NET/MagickImage.cs:line 5487
at Sammler_Homepage.Controllers.SettingsController.PicturesUploading(String WatermarkText, List1 postedFiles, String returnUrl) in C:\Users\User\Documents\repos\sammler-homepage\Controllers\SettingsController.cs:line 131
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Sammler_Homepage.Startup.<>c__DisplayClass5_0.<<Configure>b__0>d.MoveNext() in C:\Users\User\Documents\repos\sammler-homepage\Startup.cs:line 65
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.ResponseCaching.ResponseCachingMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)
It only occurs on my server, not when I test it on my PC.
It happens when I use Magick Image Rotate in my Code.
Steps to Reproduce
IT occurs when I run it on Webhosting, not PC.
Code:
public ActionResult UploadingTest()
{
MagickImage watermark = new($"label:{"Testtext"}");
watermark.Rotate(315);
return Ok();
}
After removing watermark.Rotate(); It doesn't occure anymore.
Metadata
Metadata
Assignees
Labels
No labels