QR encode tool for ngx_lua
C Lua
Switch branches/tags
Nothing to show
Clone or download
root root
root and root fix memory free bug
Latest commit a6340a9 Aug 19, 2013
Failed to load latest commit information.
clib fix memory free bug Aug 19, 2013
lib/resty code update Dec 9, 2012
README.md update ReadMe Oct 20, 2012


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