Q:

Cordova camera allowEdit with larger targetWidth and targetHeight will crash the app

With following code, after image cropping the app crashed, but if I change the targetWidth and height to 600, it works.
Any idea?
navigator.camera.getPicture($scope.processImageUri, $scope.onFail, {
    quality: 25,
    destinationType: Camera.DestinationType.FILE_URI,
    sourceType: Camera.PictureSourceType.CAMERA,
    allowEdit: true,
    encodingType: Camera.EncodingType.JPEG,
    targetWidth: 712,
    targetHeight: 712
});             

A:

I guess you are trying on Android ? If yes then below is the reason.
Basically OS is trying to load the image into memory to apply the provided parameters and that causes the crash. I had read somewhere on SO that Android has this issue.
Try without providing any parameters if they are not necessary.

