简体   繁体   English

用于创建中间带有徽标的自定义二维码的 Javascript 库?

[英]Javascript library that creates Custom QR Codes with a logo in the middle?

I would like to create a custom qr code with javascript that contains a logo in the middle.我想用 javascript 创建一个自定义的二维码,其中包含一个中间的标志。

I already found this project on github: https://github.com/kaarposoft/qrlogo but unfortunately this script creates 1000 qr codes, whereupon the logo is always positioned differently, apart from that this project is not really easy to handle.我已经在 github 上找到了这个项目: https : //github.com/kaarposoft/qrlogo但不幸的是,这个脚本创建了 1000 个 qr 代码,因此徽标的位置总是不同,除此之外,这个项目并不容易处理。 (no documentation etc). (没有文件等)。 I have rewritten in such a way that only one qr code is generated and not more than one and also that it uses an img tag instead of waiting for an upload.我以这样一种方式重写,只生成一个二维码,不超过一个,并且它使用 img 标签而不是等待上传。 Nevertheless, this is not optimal because the logo is always randomly on the qr code and it is a project and not a library.然而,这不是最佳的,因为徽标总是随机出现在二维码上,并且它是一个项目而不是库。

So I would like to know if someone knows a library or has programmed something to generate a qr code with javascript from an img tag and a string.所以我想知道是否有人知道一个库,或者是否已经编写了一些程序来使用来自 img 标签和字符串的 javascript 生成二维码。

Many greetings and thanks.许多问候和感谢。

qrcode-with-logos does the trick for me. qrcode-with-logos对我有用。 I also came across easyqrcodejs which has a lot of extra features, though I have not yet used it myself.我也遇到过easyqrcodejs ,它有很多额外的功能,虽然我自己还没有使用过。

Checkout the Zebra Crossing project. 检出Zebra Crossing项目。 It has ports to many languajes, including javascript. 它具有许多languajes的端口,包括javascript。

zxing project on GitHub GitHub上的zxing项目

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM