matheusdavidson / angular-cropperjs

CropperJS integration for Angular +6
MIT License
109 stars 69 forks source link

When i am trying to crop image whose image size is 64MB after cropping I am getting blank white image, #64

Closed Ankitkumar7 closed 2 years ago

Ankitkumar7 commented 2 years ago

Capture

Ankitkumar7 commented 2 years ago

My Config:

this.config = { zoomable: true, rotatable: true, zoomOnWheel: true, cropBoxMovable: true, cropBoxResizable: true, dragMode: 'move', built: function () { this.zoomIndex = this.zoomIndex + 0.1 }, ready: function (e) { self.cropperInstance = self.angularCropper; if(self.cropperPositionObj){ self.angularCropper.cropper.setData(self.cropperPositionObj); // disable cropper self.angularCropper.cropper.disable(); } } }

matheusdavidson commented 2 years ago

This is a known issue with Cropper JS itself, you need to limit the image size, have a look at this: https://github.com/fengyuanchen/cropperjs/issues/19