All Projects → alexeyten → Qr Image

alexeyten / Qr Image

Licence: mit
Yet another QR code generator

Programming Languages

javascript
184084 projects - #8 most used programming language

Labels

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
promptpay
Thai QR PromptPay Generator
Stars: ✭ 24 (-97.4%)
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
QRCode-Decoder
An iOS QRCode Scanner and Decoder
Stars: ✭ 17 (-98.16%)
Mutual labels:  qrcode, qr
react-native-qr-scanner
一个二维码扫描组件,依赖react-native-camera
Stars: ✭ 111 (-87.96%)
Mutual labels:  qrcode, qr
koder
QR/bar code scanner for the Browser
Stars: ✭ 73 (-92.08%)
Mutual labels:  qrcode, qr
go-emv-code
EMV® QR Code Encoder/Decoder for Go.
Stars: ✭ 60 (-93.49%)
Mutual labels:  qrcode, qr
Qr Code
Web Component for generating QR codes
Stars: ✭ 425 (-53.9%)
Mutual labels:  qr, qrcode
vk-qr
VK QR Code generator library
Stars: ✭ 43 (-95.34%)
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
Qrcode
qrcode scanner ( decoder ) by golang 二维码扫描识别
Stars: ✭ 233 (-74.73%)
Mutual labels:  qr, qrcode
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
🔲 Generate QR Codes straight in your terminal!
Stars: ✭ 34 (-96.31%)
Mutual labels:  qrcode, qr

qr-image

npm version

This is yet another QR Code generator.

Overview

  • No dependecies;
  • generate image in png, svg, eps and pdf formats;
  • numeric and alphanumeric modes;
  • support UTF-8.

Releases

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">

More examples

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 for png);
  • 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, and true means black.

Options

  • text — text to encode;
  • ec_level — error correction level. One of L, M, Q, H. Default M.
  • options — image options object:
    • ec_level — default M.
    • type — image type. Possible values png (default), svg, pdf and eps.
    • size (png and svg only) — size of one module in pixels. Default 5 for png and undefined for svg.
    • margin — white space around QR image in modules. Default 4 for png and 1 for others.
    • customize (only png) — function to customize qr bitmap before encoding to PNG.
    • parse_url (experimental, default false) — try to optimize QR-code for URLs.

Changes

  • Use zlib.deflateSync instead of pako.
  • 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].