Skip to content

Commit

Permalink
Version 1.2
Browse files Browse the repository at this point in the history
Add:
  * Allow 0 margin for png;
  * `svgPath` type.

Fix:
  * Best mask evaluation;
  * version 32 align pattern placement.
  • Loading branch information
alexeyten committed Jun 25, 2014
1 parent 1b63344 commit f759e72
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ qr_svg.pipe(require('fs').createWriteStream('i_love_qr.svg'));
* `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`.
* `type` — image type. Possible values `png` (default), `svg` (`svgPath`), `pdf` and `eps`.
* `size` (only png) — size of one module in pixels. Default `5`.
* `margin` (only png) — white space around QR image in modules. Default `4`.
* `customize` (only png) — function to customize qr bitmap before encoding to PNG.

`svgPath` is not really an image, but content of `d` attribute of corresponding SVG image.


TODO
----

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "qr-image",
"version": "1.1.0",
"version": "1.2.0",
"description": "QR Code generator (png, svg, pdf, eps)",
"homepage": "https://github.com/alexeyten/qr-image",
"keywords": [ "qrcode", "qr code", "qr", "png", "svg", "image" ],
Expand Down

0 comments on commit f759e72

Please sign in to comment.