cstefanache/angular2-img-cropper

How can I detect image loading is complete when the image size is too large.

reactionic127 opened this issue · 1 comments

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.

This should do it for you.

var that = $this;
image.onload = function() { that.cropper.setImage(image); }