Skip to content

Commit

Permalink
feat(document-scanner): add quality and base64 (#3168)
Browse files Browse the repository at this point in the history
* feat(document-scanner): add quality and base64

* removed trailing whitespace
  • Loading branch information
daltonpearson authored and danielsogl committed Sep 13, 2019
1 parent 6bc1b93 commit cfcd8d1
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/@ionic-native/plugins/document-scanner/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit cfcd8d1

Please sign in to comment.