Skip to content

Commit b25f5ad

Browse files
added v11.4.6
1 parent f599ca1 commit b25f5ad

File tree

4 files changed

+19
-12
lines changed

4 files changed

+19
-12
lines changed

SimpleHTMLApp/README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Acuant JavaScript Web SDK v11.4.5
1+
# Acuant JavaScript Web SDK v11.4.6
22

33

4-
**June 2021**
4+
**July 2021**
55

66
See [https://github.com/Acuant/JavascriptWebSDKV11/releases](https://github.com/Acuant/JavascriptWebSDKV11/releases) for release notes.
77

@@ -61,13 +61,19 @@ The SDK includes the following modules:
6161
const acuantConfig = {
6262
path: "/custom/path/to/sdk/"
6363
}
64-
64+
65+
1. Optionally, you can modify the JPEG quality setting in acuantConfig, however, Acuant discourages users from decreasing the quality unless absolutely necessary. Note that compression can result in certain tests being skipped, and Acuant strongly advises users against compressing below 600-1200 kb.
66+
67+
const acuantConfig = {
68+
//other fields
69+
jpegQuality: (float in the range of 0 to 1 with 0 being very low quality and 1 being the highest quality)
70+
}
6571
6672
1. Define a callback *before* the script tag in step 2. This is an optional global JavaScript function that is executed after Wasm is loaded.
6773

6874
var onAcuantSdkLoaded = function(){
6975
//sdk has been loaded;
70-
}
76+
}
7177
7278
----------
7379
## Initialize and Start Web Worker
@@ -133,8 +139,8 @@ For other browsers that do not support WebRTC, the device's camera app (manual c
133139

134140
**Camera Preview**
135141

136-
- **Android**: Android uses browser supported fullScreen mode for camera preview. User can exit out of this fullscreen mode. We recommend hiding all elements on page while camera is shown.
137-
- **iOS**: iOS will fill up screen height with camera preview. We recommend hiding all elements on page while camera is shown.
142+
- **Android**: Android uses browser supported fullScreen mode for camera preview. User can exit out of this fullscreen mode. Acuant recommends hiding all visual elements on page while camera is shown.
143+
- **iOS**: iOS will fill the width of the screen with the camera preview, typically with some unfilled space at the top and bottom (iOS cameras tend to display in 4:3, whereas screens tend to display in widescreen). Therefore, some elements of the page might be visible. Acuant recommends hiding all visual elements and optionally adding some background elements as otherwise the background will be white.
138144

139145
**Tap to Capture**
140146

SimpleHTMLApp/app/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ <h3>Live Camera failed to open. Start manual capture</h3>
395395

396396

397397
const acuantConfig = {
398-
path: "/webSdk/dist/"
398+
path: "/webSdk/dist/",
399+
jpegQuality: 1.0 //strongly advised not to modify (can be left out will default to 1.0)
399400
}
400401
</script>
401402
<script async src="/webSdk/dist/AcuantJavascriptWebSdk.min.js" charset="utf-8"></script>

SimpleHTMLApp/webSdk/dist/AcuantJavascriptWebSdk.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SimpleHTMLApp/webSdk/dist/AcuantJavascriptWebSdk.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)