Adjust camera plugin settings

This commit is contained in:
Skylar Ittner 2021-02-06 23:23:17 -07:00
parent 5685b924f7
commit 1a11c8f2ce

View File

@ -56,11 +56,13 @@ function takeDocPhoto(side) {
}, function (err) { }, function (err) {
app.dialog.alert(err, "Error"); app.dialog.alert(err, "Error");
}, { }, {
quality: 80, quality: 50,
targetWidth: 1000, targetWidth: 1000,
pictureSourceType: Camera.PictureSourceType.CAMERA,
destinationType: Camera.DestinationType.DATA_URL, destinationType: Camera.DestinationType.DATA_URL,
encodingType: Camera.EncodingType.JPEG, encodingType: Camera.EncodingType.JPEG,
saveToPhotoAlbum: false, saveToPhotoAlbum: false,
correctOrientation: true,
cameraDirection: Camera.Direction.BACK cameraDirection: Camera.Direction.BACK
}); });
// cordova-plugin-document-scanner was removed because the plugin is buggy. // cordova-plugin-document-scanner was removed because the plugin is buggy.