# Scanning QR code from an image folder

**URL:** <https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346>\
**Category:** ionic-v3\
**Created:** [April 21, 2017, 12:32pm UTC](https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346 "2017-04-21T12:32:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![keremalincak](https://avatars.discourse-cdn.com/v4/letter/k/ad7895/32.png) [@keremalincak](https://forum.ionicframework.com/u/keremalincak)\
**Post date:** [April 21, 2017, 12:32pm UTC](https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346/1 "2017-04-21T12:32:49Z")

</div>

I want to scan a QR code whith is on image from the gallery.  
p.s: not by camera but as choosing a folder from galery

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [April 21, 2017, 7:11pm UTC](https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346/2 "2017-04-21T19:11:56Z")

</div>

Interesting problem.

The usual plugins and libraries all only provide a method to actually take a picture that contains a QR code. This is because the scanning is already part of the underlying library and native implementation, so they can’t really offer a “decode QR code in this image” exactly.

Can you test the image you have on here if this works:  
[https://webqr.com/](https://webqr.com/) (note the photo camera button on the top right)

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [April 21, 2017, 9:36pm UTC](https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346/3 "2017-04-21T21:36:47Z")

</div>

[Here](https://github.com/LazarSoft/jsqrcode) is a JavaScript port of ZXing. I think you could use this to decode from an image that you write to a `<canvas>` element.

---

<div class="post-metadata">

**Author:** ![keremalincak](https://avatars.discourse-cdn.com/v4/letter/k/ad7895/32.png) [@keremalincak](https://forum.ionicframework.com/u/keremalincak)\
**Post date:** [April 22, 2017, 6:56pm UTC](https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346/4 "2017-04-22T18:56:44Z")

</div>

This is the method I wanted. How can I add this to my application. =\> [https://webqr.com/](https://webqr.com/)

---

<div class="post-metadata">

**Author:** ![Sujan12](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sujan12/32/108395_2.png) [@Sujan12](https://forum.ionicframework.com/u/Sujan12)\
**Post date:** [April 22, 2017, 9:58pm UTC](https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346/5 "2017-04-22T21:58:24Z")

</div>

[webqr.com](http://webqr.com) is actually an implementation of [https://github.com/LazarSoft/jsqrcode](https://github.com/LazarSoft/jsqrcode) which @rapropos also posted. So you can probably use this in your app.

There are multiple Angular versions of jsqrcode out there, unfortunately all I could find are for AngularJS and so for Ionic 1:

> **[sembrestels/angular-qr-scanner](https://github.com/sembrestels/angular-qr-scanner)**
>
> angular-qr-scanner - Angular directive for QR Scanner

  

> **[blockchain/bc-qr-reader](https://github.com/blockchain/bc-qr-reader)**
>
> bc-qr-reader - Angular QR Reader Directive

  

> **[monospaced/angular-qrcode](https://github.com/monospaced/angular-qrcode)**
>
> angular-qrcode - QR Code elements for AngularJS.

But I’m sure you can adapt these or if you search a bit more one for Angular will turn up.

---

<div class="post-metadata">

**Author:** ![shinu\_neo](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@shinu\_neo](https://forum.ionicframework.com/u/shinu_neo)\
**Post date:** [August 10, 2017, 9:43am UTC](https://forum.ionicframework.com/t/scanning-qr-code-from-an-image-folder/87346/6 "2017-08-10T09:43:10Z")

</div>

Can you please any one help me to solve the QR code issue

> [@Ionic QR Code scan not opening camera for iOS and Android devices](https://forum.ionicframework.com/t/ionic-qr-code-scan-not-opening-camera-for-ios-and-android-devices/101512):
>
> I have tried to implement QR code scan using Ionic native tutorial from this url “[https://ionicframework.com/docs/native/qr-scanner/](https://ionicframework.com/docs/native/qr-scanner/)” But it is not opening camera please refer the code below and please help me to solve this issue. import { Component } from ‘@angular/core’; import { NavController } from ‘ionic-angular’; import { QRScanner, QRScannerStatus } from ‘@ionic-native/qr-scanner’; import { AndroidPermissions } from ‘@ionic-native/android-permissions’; @Component({ selector: ‘page-h…
