fengyuanchen / cropperjs

JavaScript image cropper.
https://fengyuanchen.github.io/cropperjs/
MIT License
13.11k stars 2.42k forks source link

Bug on images #280

Closed helioascorreia closed 6 years ago

helioascorreia commented 6 years ago

Hi, this issue is hard to explain.

Basically when I upload a big resolution image, the width of the image don't has its width wright. To fix that I had to comment the max-width: 100% of all images. After trying everything I change to the jquery version and it works.

Anyone had this problem? Thanks

fengyuanchen commented 6 years ago

The same as #279?

helioascorreia commented 6 years ago

No, for example, I upload and image with 3000x2000 pixels, then if I select the entire image the getData says that the image had for example 1600px. It happens because it gets the size based on the width of the window. The problem gets when I crop the image on the server side because if I select half the imagem it says the image has 1000 of width instead of 15000

fengyuanchen commented 6 years ago

Sorry, I can't understand what you mean...

helioascorreia commented 6 years ago

I can't reproduce in code pen, in code pen it works, but on my project i didn't and what i've changed was the cropperjs to cropper. I'll close this now and if I had the problem again i'll open another. Thanks