Open djpysu opened 8 years ago
@djpysu I found a solution on the #22
I changed the method onFile and solved. See:
$scope.onFile = function (blob) {
Cropper.encode((file = blob)).then(function (dataUrl) {
$scope.dataUrl = dataUrl;
$timeout(hideCropper);
$timeout(showCropper); // wait for $digest to set image's src
});
};
When I try to upload a second image, it's not working - the cropper remains with the first image.