Thanks, Tina.. I have resolved the issue by giving the targetheight.
Here is my working code
navigator.camera.getPicture(onSuccess, onFail, {
quality: 50,
targetWidth: 600,
targetHeight: 600,
encodingType: Camera.EncodingType.PNG,
correctOrientation: true,
destinationType: destinationType.DATA_URL
});