cstefanache / angular2-img-cropper

Angular 2 Image Cropper
MIT License
364 stars 135 forks source link

preserveSize = true #112

Open justpie opened 7 years ago

justpie commented 7 years ago

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.

oztek22 commented 7 years ago

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 commented 7 years ago

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).