Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dcshi/lua-resty-QRcode
QR encode tool for ngx_lua
https://github.com/dcshi/lua-resty-QRcode
Last synced: 7 days ago
JSON representation
QR encode tool for ngx_lua
- Host: GitHub
- URL: https://github.com/dcshi/lua-resty-QRcode
- Owner: dcshi
- Created: 2012-10-25T14:44:38.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2013-08-19T02:49:15.000Z (about 11 years ago)
- Last Synced: 2024-02-14T20:37:24.635Z (9 months ago)
- Language: C
- Size: 125 KB
- Stars: 30
- Watchers: 3
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-resty - lua-resty-QRcode
README
libqrencode(http://fukuchi.org/works/qrencode/index.html.en) and libpng is need:
sudo apt-get install libqrencode-dev libpng12-devHow 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