All Projects → vincascm → Qrencode

vincascm / Qrencode

Licence: other
qrencode for lua

Programming Languages

c
50402 projects - #5 most used programming language
lua
6591 projects

Labels

Projects that are alternatives of or similar to Qrencode

Zxinggenerator
花式二维码生成,提供了6种样式
Stars: ✭ 618 (+2031.03%)
Mutual labels:  qrcode
Qr Filetransfer
Transfer files over WiFi between your computer and your smartphone from the terminal
Stars: ✭ 738 (+2444.83%)
Mutual labels:  qrcode
Qml Snippet
some qml snippet.
Stars: ✭ 9 (-68.97%)
Mutual labels:  qrcode
Php Qrcode
A QR Code generator for PHP7.4+
Stars: ✭ 685 (+2262.07%)
Mutual labels:  qrcode
Vue Qrcode
QR code component for Vue.js
Stars: ✭ 724 (+2396.55%)
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
Pyexfil
A Python Package for Data Exfiltration
Stars: ✭ 554 (+1810.34%)
Mutual labels:  qrcode
Qr Code Scanner
Full stable QR code scanner android app.
Stars: ✭ 28 (-3.45%)
Mutual labels:  qrcode
Twofactorauth
PHP library for Two Factor Authentication (TFA / 2FA)
Stars: ✭ 722 (+2389.66%)
Mutual labels:  qrcode
Qr Image
Yet another QR code generator
Stars: ✭ 922 (+3079.31%)
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
Tesseract Ocr Scanner
基于Tesseract-OCR实现自动扫描识别手机号
Stars: ✭ 622 (+2044.83%)
Mutual labels:  qrcode
Czxing
C++ port of ZXing and ZBar for Android.
Stars: ✭ 854 (+2844.83%)
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
Qrcode
qrcode generator
Stars: ✭ 13 (-55.17%)
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"
}
)


in nginx lua

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
  }
)

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].