vue-qrcode-reader icon indicating copy to clipboard operation
vue-qrcode-reader copied to clipboard

imageData is null

Open fraaalk opened this issue 3 years ago • 0 comments

When using QrcodeDropZone or QrcodeCapture @detect event as described in the api (https://gruhn.github.io/vue-qrcode-reader/api/QrcodeCapture.html#events), imageData inside the returned promise is always null.

In https://github.com/gruhn/vue-qrcode-reader/blob/master/src/misc/scanner.js#L28 its set to null. Is it possible to pass the imageData? This is necessary to display a preview of the uploaded or dragged file.

Copy the api example and console.log(imageData)

  • OS: macOS 11.2.2
  • Browser Chrome
  • Version 91.0

fraaalk avatar Jun 11 '21 14:06 fraaalk