Chronostasys / Blazor.Cropper

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

Cannot crop some images #29

Closed Molinware closed 2 years ago

Molinware commented 2 years ago

I loaded the image to the cropper and it does not allow to crop.

Example of image that's not working: Me_Inicial

Chronostasys commented 2 years ago

Hi Molinware, could you provide a code example? I tested the image on the sample site and it works fine.
image

Molinware commented 2 years ago

That's really odd, I tested using the sample site and it's not working here. (Chrome version 94.0.4606.81) image

PS: With Microsoft Edge same result...

Chronostasys commented 2 years ago

That's really odd, I tested using the sample site and it's not working here. (Chrome version 94.0.4606.81) image

PS: With Microsoft Edge same result...

Is there any error in the browser debug console?

Molinware commented 2 years ago

Console: image

Network: image

Chronostasys commented 2 years ago

Console: image

Network: image

That's really odd. I would advice you to try again in the chrome's anonymous mode.

If that doesn't work either, could you run the code below in console and check the position of the returned dom element (do it after the cropper dialog shows up)?

document.getElementById('mainBox') // this should return the cropper element

image

Molinware commented 2 years ago

image

`

`
Chronostasys commented 2 years ago

The value is just the same as mine. I just installed chrome ver 94.0.4606.81 and the cropper works fine on my browser.
It's really hard to debug the issue since I cannot reproduce it. I guess it might related to some css styles, please try document.getElementById('mainBox').style.zIndex=9999 in console, if the code takes effect then the z-index style is responsible for the issue.

Molinware commented 2 years ago

Sometimes it's generating this error: image

Chronostasys commented 2 years ago

Sometimes it's generating this error: image

Thanks, I'll check it

Chronostasys commented 2 years ago

Hi Molinware, I think this issue might be related to pr #32 , could you try the latest version(1.1.8) again? Feel free to contact me if the issue exists.

Molinware commented 2 years ago

It's working now, thanks!