Chronostasys / Blazor.Cropper

A blazor library provides component to crop image
MIT License
84 stars 19 forks source link

PureCSharpProcessing crashed with image *.ico #35

Open tomahutbui opened 2 years ago

tomahutbui commented 2 years ago

crit: Microsoft.AspNetCore.Components.WebAssembly.Rendering.WebAssemblyRenderer[100] Unhandled exception rendering component: Image cannot be loaded. Available decoders:

  • JPEG : JpegDecoder
  • TGA : TgaDecoder
  • PNG : PngDecoder
  • BMP : BmpDecoder
  • GIF : GifDecoder

SixLabors.ImageSharp.UnknownImageFormatException: Image cannot be loaded. Available decoders:

  • JPEG : JpegDecoder
  • TGA : TgaDecoder
  • PNG : PngDecoder
  • BMP : BmpDecoder
  • GIF : GifDecoder

    at SixLabors.ImageSharp.Image.Load(Configuration configuration, Stream stream, IImageFormat& format) at SixLabors.ImageSharp.Image.Load(Configuration configuration, Byte[] data, IImageFormat& format) at SixLabors.ImageSharp.Image.Load(Byte[] data, IImageFormat& format) at Blazor.Cropper.Cropper.OnParametersSetAsync() at Microsoft.AspNetCore.Components.ComponentBase.CallStateHasChangedOnAsyncCompletion(Task task) at Microsoft.AspNetCore.Components.ComponentBase.RunInitAndSetParametersAsync() at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

image

Chronostasys commented 2 years ago

Hi tomahutbui, sorry for my late reply.
Seems it's an ImageSharp issue. Blazor.Cropper relies on ImageSharp to provide pure c# crop support. So unfortunately, we cannot fix this issue until ImageSharp provides supports for .ico format.