-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
getCroppedCanvas is producing a blank or corrupt image on some devices first time #1036
Comments
Out of memory? |
Same thing happens on my Samsung S8 - Android 9 and Samsung A41 - Android 10. |
I'm having a similar problem with my application, on chrome on an android device, only the first time you load a new browser window, except in my case the cropped image is upside down and off center. |
Reproduced on Samsung M21, Android 12 and Google Pixel 7. Maybe some functions are being executed before the script is fully loaded? |
@miklosz Maybe you can try to initialize the Cropper after all things are ready (loaded or prepared). |
@fengyuanchen you might have misunderstood me. I reproduced this behaviour on devices as mentioned above on the demo site https://fengyuanchen.github.io/cropperjs/, so it's not my code ;-) |
@miklosz You might have to help yourself because I don't have these devices for debugging.
|
After a break, i wanted to retry to fix this issue and i can't reproduce it anymore on Chrome. Some days ago, a chrome-android update was released. So, on Chrome, on every of my mobile phone, it workes like a charme. On Brave, with the same chromium version, the bug is active. Really strange..... |
Describe the bug
getCroppedCanvas is producing a blank or corrupt image on some devices first time
To Reproduce
go to https://fengyuanchen.github.io/cropperjs/
click Get Cropped Canvas
(result is blank first time, subsequent times it works)
Smartphone (please complete the following information):
Additional context
We see this only on some devices in our app (where the result is a corrupt image) and have been able to reproduce on the above device with the demo site (where the result is a blank canvas)
The text was updated successfully, but these errors were encountered: