-
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
Fire error event when cropper init failed #674
Comments
I am not sure if this is really necessary now. I will think about this next. |
Any possibility of launching this feature? I would like the same solution, because when the url passed in the image is broken or does not exist, I would like to shoot something for the user. |
@MTAugusto For your case, you can just check if the image URL is valid (loaded successfully) before init a cropper. |
He will consume extra traffic if the picture is bigger |
You can use |
Is your feature request related to a problem? Please describe.
When init cropper failed, fire an error event. Ex. init cropper with a cross-origin URL and load the target image failed.
Describe the solution you'd like
Add
error
event support. Like theready
event, but fires when the target image load failed and the cropper instance is not ready for operating.Describe alternatives you've considered
Before init cropper with an image URL, the user should check the image URL worked as expect manually.
Additional context
Commits about error event
The text was updated successfully, but these errors were encountered: