dcshi / lua-resty-QRcode

QR encode tool for ngx_lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

libqrencode(http://fukuchi.org/works/qrencode/index.html.en) and libpng is need: sudo apt-get install libqrencode-dev libpng12-dev

How to Use

local resty_qr = require "resty.QRcode";

local str = "http://dcshi.com";

local file = "/tmp/qr.png";

local color = "FF00F3"; --RGB

local qr = resty_qr:new(8, 4, 72, color); -- size margin dpi fg_color bg_color

local status = qr:saveQr(str, 0, 2, file) -- str level mode path_img

About

QR encode tool for ngx_lua


Languages

Language:C 61.2%Language:Lua 38.8%