Fancy QR
Create QR code with logo or a change of color. The data capacity is up to ~1200 bytes. Here is the example of your output:
Installation
npm install fancyqr
Then, read how to install native dependency here.
Usage
var fancyQR = ;fancyQR;
API
//save the image output as pngfancyQR; //output as data urlfancyQR; //output as internal canvas object for further modification (see API from node-canvas)fancyQR;
Options can have the following fields:
- r: red color of the qr output (logo unaffected) [0-255]
- g: green color [0-255]
- b: blue color [0-255]
- logoPath: path of the logo, recommended 30 x 30 or smalled