From 1a11c8f2cea4367a09732f72789ef8038a0251e2 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 6 Feb 2021 23:23:17 -0700 Subject: [PATCH] Adjust camera plugin settings --- www/assets/js/noticeslip.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/assets/js/noticeslip.js b/www/assets/js/noticeslip.js index 6ce7a3e..05e6dbd 100644 --- a/www/assets/js/noticeslip.js +++ b/www/assets/js/noticeslip.js @@ -56,11 +56,13 @@ function takeDocPhoto(side) { }, function (err) { app.dialog.alert(err, "Error"); }, { - quality: 80, + quality: 50, targetWidth: 1000, + pictureSourceType: Camera.PictureSourceType.CAMERA, destinationType: Camera.DestinationType.DATA_URL, encodingType: Camera.EncodingType.JPEG, saveToPhotoAlbum: false, + correctOrientation: true, cameraDirection: Camera.Direction.BACK }); // cordova-plugin-document-scanner was removed because the plugin is buggy.