Android Camera Image quality dropping down


I am developing an app for android devices. This app requires android Native camera app to launch and capture HD images. The images captured should not lose its quality and I am ok with the size of the images if its in MB’s…

Currently Im passing this object as camera options…

var options = {
			quality : 100,
  			destinationType : Camera.DestinationType.FILE_URI,
  			sourceType : Camera.PictureSourceType.CAMERA,
 			encodingType: Camera.EncodingType.JPEG,
    		targetWidth: 3000,
  			targetHeight: 3400,
  			popoverOptions: CameraPopoverOptions,
  			saveToPhotoAlbum: false
				${ template: 'Picture was not taken!', noBackdrop: true, duration: 2000 });

What options should I change to get my requirement done?
OR, should I change the to take only uncompressed lossless images?

Please help me with this problem.



Try PNG that’s a lossless format instead of JPEG.


I tried the PNG encoding type.

The cordova documentation says -
Android Quirks - EncodingType not supported in Android!

Is there any other way? :disappointed:


Which documentation? Not this one:

Just tried and it seems to work.


Got it. Thanks. :smile: