qart.js
Merges Pictures and QR Codes for Artistic QR Codes.
Glance At
https://kciter.github.io/qart.js/
Installation
NPM
$ npm install qartjs
or clone this repository and copy qart.min.js
to your project.
CDN
Usage
In the browser
With ES6
;const qart = value: value imagePath: './example.png' filter: filter size: 195; // directly appending canvas to the documentqart // using callbackqart;
With React
This is a simple implementation of QArt as React Component. react-qart
With Angular.JS
There is a directive available for using qart.js in Angular.js: angular-qart
With Vue 2.x
There is a directive available for using qart.js in Vue.js 2.x : vue-qart
Options
Field | Type | Description | Default |
---|---|---|---|
value | String | The data of the QR code. | Required |
imagePath | String | The path of the combined image. | Required |
filter | String | Define an image filter. threshold or color |
threshold |
size | Integer | Define an image size in pixels. | 195 |
version | Integer | QRCode version (1 <= version <= 40) | 10 |
background | CSSColor | Implement background if exist | undefinded |
fillType | scale_to_fit/fill | Place image type(fill or scale to fit) | scale_to_fit |
Dependency
Inspire
TODO
- Server-Side Rendering.
- CLI Command.
Donate
If you like this open source, you can sponsor it. 😄