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
};
$cordovaCamera.getPicture().then(
function(imageURI){
console.log(imageURI);
$state.go('singleFileUpload',{'uploadType':'1','uploadPath':imageURI});
},
function(err){
$ionicLoading.show({ template: 'Picture was not taken!', noBackdrop: true, duration: 2000 });
}
);
What options should I change to get my requirement done?
OR, should I change the CameraLauncher.java to take only uncompressed lossless images?
Please help me with this problem.
Thanks!