angular2-img-cropper icon indicating copy to clipboard operation
angular2-img-cropper copied to clipboard

preserveSize = true

Open justpie opened this issue 9 years ago • 2 comments

When i set the following : this.cropperSettings.preserveSize = true;

this.data.image returns null when image resolution is very large. 20000px+; Works fine on smaller images tough.

justpie avatar Dec 26 '16 05:12 justpie

I'm getting same error. I'm getting this message in console:

"EXCEPTION: [Exception... "Failure" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://.../src/imageCropper.js :: ImageCropper.prototype.drawImageIOSFix :: line 977" data: no]"

oztek22 avatar Mar 20 '17 11:03 oztek22

Also It cannot handle the crop ratio in small images(LIke I kept AspectRatio true and my cropper ratio is 1:1 aka square but in output I'm getting stretched Image of random ratio).

oztek22 avatar Mar 20 '17 11:03 oztek22