You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ Supports two kinds of APIs
30
30
31
31
[](https://www.npmjs.com/package/html5-qrcode)[](https://bit.ly/3CZiASv)
#### For QR Code scanning using local files or inbuilt camera on Smartphones
276
276
| Selector in Android | Selector in IOS|
277
277
|------|-------|
278
-
| Taken on Pixel 3, Google Chrome<br><img src="https://scanapp.org/assets/github_assets/selector_android.png" width="300px"> | Taken on iPhone 7, Google Chrome<br><img src="https://scanapp.org/assets/github_assets/selector_iphone.jpg" width="300px"> |
278
+
| Taken on Pixel 3, Google Chrome<br /><img src="https://scanapp.org/assets/github_assets/selector_android.png" width="300px"> | Taken on iPhone 7, Google Chrome<br /><img src="https://scanapp.org/assets/github_assets/selector_iphone.jpg" width="300px"> |
279
279
280
280
You can alternatively leverage QR Code scanning for local files on the device or default camera on the device. It works similar to inline QR Code scanning.
281
281
@@ -331,7 +331,7 @@ fileinput.addEventListener('change', e => {
331
331
> Note that inline scanning and file-based scanning are mutually exclusive at the moment. This means you can only use one of them at a time. I'll soon be adding support for the option to have both if the requirement comes in. If you want to use both, use `html5QrCode#clear()` method to clear the canvas.
_Scan this image or visit [blog.minhazav.dev/research/html5-qrcode.html](https://blog.minhazav.dev/research/html5-qrcode.html)_
336
336
337
337
### For more information
@@ -342,7 +342,7 @@ Check these articles on how to use this library:
342
342
-[HTML5 QR Code scanning with JavaScript — Support for scanning the local file and using default camera added (v1.0.5)](https://blog.minhazav.dev/HTML5-QR-Code-scanning-support-for-local-file-and-default-camera/)
_Figure: Screenshot from Google Chrome running on MacBook Pro_
347
347
348
348
## Documentation
@@ -826,7 +826,7 @@ A.K.A frame per second, the default value for this is 2, but it can be increased
826
826
#### `qrbox` — `QrDimensions` or `QrDimensionFunction` (Optional), Example = `{ width: 250, height: 250 }`
827
827
Use this property to limit the region of the viewfinder you want to use for scanning. The rest of the viewfinder would be shaded. For example, by passing config `{ qrbox : { width: 250, height: 250 } }`, the screen will look like:
If `true` the last camera used by the user and weather or not permission was granted would be remembered in the local storage. If the user has previously granted permissions — the request permission option in the UI will be skipped and the last selected camera would be launched automatically for scanning.
@@ -1047,7 +1047,7 @@ This project would not be possible without all of our fantastic contributors and
1047
1047
**Sponsor the project for priortising feature requests / bugs relevant to you**. (Depends on scope of ask and bandwidth of the contributors).
0 commit comments