How can I detect image loading is complete when the image size is too large.
reactionic127 opened this issue · 1 comments
reactionic127 commented
I am trying to load large image on cropper component.
I am setting the image using $this.cropper.setImage(image);
but I can't the loading complete event in setImage.
How can I detect this event on frontend side?
Regards.
marcus29200 commented
This should do it for you.
var that = $this;
image.onload = function() { that.cropper.setImage(image); }