Chronostasys / Blazor.Cropper

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

Cropper having issue while click on 'Done' button #30

Closed irushabh closed 2 years ago

irushabh commented 2 years ago

My Project Version: .NET 5.0

image

image

Chronostasys commented 2 years ago

Hi irushabh, are you using blazor server side? Blazor.Cropper is designed to crop image on frontend only. Blazor server side relies heavily on signalR, which may break on transferring large image data. If you still want to try it on server side, try some smaller image or set signalr MaximumReceiveMessageSize larger.

irushabh commented 2 years ago

Hello, Thanks for your reply. Yes, I am on Server Side Blazor, and you're right on server side it's causing breaking signalR connection, but I just find a way by using the PureCSharpProcessing="true".

Now it's working fine actually with bigger image as well.

Thanks, Rush

Chronostasys commented 2 years ago

That's very interesting, I shall document this behavoir later. Thanks for your feedback.

irushabh commented 2 years ago

Hello,

yes, it's strange though. Try PureCSharpProcessing="true" and use image that has size more than 5 MB.

it works.

Little slow but do the job.

NandKishor009 commented 1 year ago

Hello @Chronostasys this code not working for me when crop the 500kb image can you help me ?

Chronostasys commented 1 year ago

Hello @Chronostasys this code not working for me when crop the 500kb image can you help me ?

Hi @NandKishor009 , did you set MaximumReceiveMessageSize > 500KB?