alexeyten / Qr Image
Licence: mit
Yet another QR code generator
Stars: ✭ 922
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Qr Image
Cordova Plugin Qrscanner
A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
Stars: ✭ 485 (-47.4%)
Mutual labels: qr, qrcode
quagga2-reader-qr
Quagga2 sample external reader for QR codes
Stars: ✭ 20 (-97.83%)
Mutual labels: qrcode, qr
js-qrcode
The library is for generating QR codes like SVG, HTML5 Canvas, PNG and JPG files, or text.
Stars: ✭ 35 (-96.2%)
Mutual labels: qrcode, qr
qrcode
A flutter plugin for scanning QR codes. Use AVCaptureSession in iOS and zxing in Android.
Stars: ✭ 69 (-92.52%)
Mutual labels: qrcode, qr
nova-qrcode-field
A Laravel Nova field to generate QR Code
Stars: ✭ 28 (-96.96%)
Mutual labels: qrcode, qr
art-qr
JavaScript library to generate beautiful QR code in browser 艺术二维码
Stars: ✭ 19 (-97.94%)
Mutual labels: qrcode, qr
react-native-qr-scanner
一个二维码扫描组件,依赖react-native-camera
Stars: ✭ 111 (-87.96%)
Mutual labels: qrcode, qr
qrcodescan.in
📠 A simple, fast, and useful progressive web application.
Stars: ✭ 144 (-84.38%)
Mutual labels: qrcode, qr
paper-store
Cold store small files on paper as QR codes -- PGP keys, Bitcoin keys, Tox keys or any other small files in general.
Stars: ✭ 28 (-96.96%)
Mutual labels: qrcode, qr
wifiqr
Create a QR code with your Wi-Fi login details
Stars: ✭ 207 (-77.55%)
Mutual labels: qrcode, qr
emv-qrcode
Golang Based EMV QR Code Generator and Parser (MPM, CPM)
Stars: ✭ 43 (-95.34%)
Mutual labels: qrcode, qr
pix-payload-generator.net
Gerar payload para qrcode estático PIX. (Sistema de pagamento instantâneo do Brasil) Sem a necessidade de conexão com um PSP.
Stars: ✭ 23 (-97.51%)
Mutual labels: qrcode, qr
qr-image
This is yet another QR Code generator.
Overview
- No dependecies;
- generate image in
png
,svg
,eps
andpdf
formats; - numeric and alphanumeric modes;
- support UTF-8.
Installing
npm install qr-image
Usage
Example:
var qr = require('qr-image');
var qr_svg = qr.image('I love QR!', { type: 'svg' });
qr_svg.pipe(require('fs').createWriteStream('i_love_qr.svg'));
var svg_string = qr.imageSync('I love QR!', { type: 'svg' });
Example For generate images in client side:
var qr = require('qr-image');
router.get('/qr', function(){
var code = qr.image('http://www.google.com', { type: 'png' });
res.setHeader('Content-type', 'image/png'); //sent qr image to client side
code.pipe(res);
});
then in the html files:
<img src="/qr" alt="qrcode">
qr = require('qr-image')
Methods
-
qr.image(text, [ec_level | options])
— Readable stream with image data; -
qr.imageSync(text, [ec_level | options])
— string with image data. (Buffer forpng
); -
qr.svgObject(text, [ec_level | options])
— object with SVG path and size; -
qr.matrix(text, [ec_level])
— 2D array of booleans. Y is indexed first (e.g.[y][x]
NOT[x][y]
),[0][0]
is the top left, andtrue
means black.
Options
-
text
— text to encode; -
ec_level
— error correction level. One ofL
,M
,Q
,H
. DefaultM
. -
options
— image options object:-
ec_level
— defaultM
. -
type
— image type. Possible valuespng
(default),svg
,pdf
andeps
. -
size
(png and svg only) — size of one module in pixels. Default5
for png andundefined
for svg. -
margin
— white space around QR image in modules. Default4
forpng
and1
for others. -
customize
(only png) — function to customize qr bitmap before encoding to PNG. -
parse_url
(experimental, defaultfalse
) — try to optimize QR-code for URLs.
-
Changes
- Use
zlib.deflateSync
instead ofpako
. - Fix deprecation warning for NodeJS 7.
TODO
- Tests;
- mixing modes;
- Kanji (???).
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].