Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

带有image的二维码有可能无效 #28

Open
MichaelGong opened this issue Jan 15, 2016 · 0 comments
Open

带有image的二维码有可能无效 #28

MichaelGong opened this issue Jan 15, 2016 · 0 comments

Comments

@MichaelGong
Copy link

http://docs.spmjs.io/arale-qrcode/latest/examples/ 你的示例中的第二个和第三个都很难扫出来,我自己做的时候,中间插入图片的话(size=200,imageSize =50),

var qrnode = new AraleQRCode({
      render: 'canvas',
      correctLevel: 0,
      text: data.coupon.code,
      size: 200,
      image : 'http://img0.imgtn.bdimg.com/it/u=2803538676,3839002648&fm=21&gp=0.jpg',
       imageSize : 50
});

这样生成的二维码 如法扫描,但是imageSize改成30的话,就可以了

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant