From 141f0e6e4154bed1d21b735b97d275f619a92647 Mon Sep 17 00:00:00 2001 From: Dalton Pearson <32880838+daltonpearson@users.noreply.github.com> Date: Fri, 13 Sep 2019 08:40:28 -0400 Subject: [PATCH] feat(document-scanner): add quality and base64 (#3168) * feat(document-scanner): add quality and base64 * removed trailing whitespace --- .../plugins/document-scanner/index.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/@ionic-native/plugins/document-scanner/index.ts b/src/@ionic-native/plugins/document-scanner/index.ts index fe6279ca7..50231f897 100644 --- a/src/@ionic-native/plugins/document-scanner/index.ts +++ b/src/@ionic-native/plugins/document-scanner/index.ts @@ -27,6 +27,21 @@ export interface DocumentScannerOptions { * which is "image". */ fileName?: string; + + /** + * Quality to use when capturing the image, must be a float value + * from 1.0(default - Highest quality) to 5.0(Lowest Quality). Any value + * in between will be accepted. Any value not equal to or not between these values + * will default to the highest quality of 1.0. + */ + quality?: number; + + /** + * If the image should be returned as a base64 encoding instead of as a file URL. + * If true, the plugin will return the scanned image as base64. If false, + * the plugin will return the image URL of the image. + */ + returnBase64?: boolean; } /**