vincascm / Qrencode
Licence: other
qrencode for lua
Stars: ✭ 29
Labels
Projects that are alternatives of or similar to Qrencode
Qr Filetransfer
Transfer files over WiFi between your computer and your smartphone from the terminal
Stars: ✭ 738 (+2444.83%)
Mutual labels: qrcode
Td Angular Barcode
Barcode Generator for Angular 1 (Supports 90+ barcode types: qr, aztec, code128, ean, isbn, interleaved2of5, ...)
Stars: ✭ 22 (-24.14%)
Mutual labels: qrcode
Twofactorauth
PHP library for Two Factor Authentication (TFA / 2FA)
Stars: ✭ 722 (+2389.66%)
Mutual labels: qrcode
React Native Qrcode Svg
A QR Code generator for React Native based on react-native-svg and node-qrcode.
Stars: ✭ 693 (+2289.66%)
Mutual labels: qrcode
React Qr Reader
React component for reading QR codes from webcam.
Stars: ✭ 716 (+2368.97%)
Mutual labels: qrcode
Zxingview
👍 Lowest cost integration and most convenient customization zxing on android
Stars: ✭ 23 (-20.69%)
Mutual labels: qrcode
Quick Media
media(audio/image/qrcode/markdown/html/svg) support web service (多媒体编辑服务, 酷炫二维码, 音频, 图片, svg, markdown, html渲染服务支持)
Stars: ✭ 612 (+2010.34%)
Mutual labels: qrcode
React Native Qrcode
a minimalist qrcode component for react-native
Stars: ✭ 828 (+2755.17%)
Mutual labels: qrcode
Privatekeyvault
Make Instructions: Airgapped raspberry pi computer for working with blockchains featuring LUKS full disk encryption and using qr-codes to pass encrypted files and offline transaction instructions across the airgap.
Stars: ✭ 29 (+0%)
Mutual labels: qrcode
Spring Qrcode Example
Demonstrates some of the capabilities of the Spring Boot framework through a small, simple example.
Stars: ✭ 23 (-20.69%)
Mutual labels: qrcode
qrencode: qrencode is a wrapper of libqrencode with libpng for lua.
qrencode is a wrapper of libqrencode with libpng for lua.
Install
qrencode is dependent on libqrencode and libpng, so make sure these are installed before compile it.
CentOS
yum install -y qrencode-devel libpng-devel
make
Example usage
simple usage
qr = require "qrencode"
-- print PNG data stream to stdout.
print(qr.encode("is ok?"))
print(qr:encode("is ok?"))
print(qr("is ok?"))
print(qr {text = "is ok?", level = "M"})
-- or pass a table :
print(qr {
text="is ok?",
level="L",
kanji=false,
size=4,
margin=2,
symversion=0,
dpi=78,
casesensitive=false,
foreground="48AF6D",
background="3FAF6F"
}
)
nginx lua
inlocal qr = require "qrencode"
local args = ngx.req.get_uri_args()
ngx.header.content_type = 'image/png'
ngx.say(
qr {
text = args.text,
size = args.size or 8,
margin = args.margin or 1,
symversion = 2,
level = 'M',
foreground = args.fg,
background = args.bg
}
)
or nginx config file
server {
server_name qr.corp.com;
location /qr {
content_by_lua_block {
local qr = require "qrencode"
local args = ngx.req.get_uri_args()
ngx.header.content_type = 'image/png'
ngx.say( qr {
text = args.text,
size = args.size or 8,
margin = args.margin or 1,
symversion = 2,
level = 'M',
foreground = args.fg,
background = args.bg
})
}
}
}
and visit http://qr.corp.com/qr?text=works
to test it.
when pass a table, "text" is required and other is optional.
Author
vinoca https://www.vinoca.org/
Copyright and license
Code and documentation copyright 2014-2020 vinoca. Code released under the MIT license. Docs released under Creative commons.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].