From f759e722af99c2597f25f0af06e1bcc7b5be6818 Mon Sep 17 00:00:00 2001 From: "Alexey Ten (Lynn)" Date: Wed, 25 Jun 2014 11:46:16 +0400 Subject: [PATCH] Version 1.2 Add: * Allow 0 margin for png; * `svgPath` type. Fix: * Best mask evaluation; * version 32 align pattern placement. --- README.md | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ece6cce..6e21bbc 100644 --- a/README.md +++ b/README.md @@ -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 ---- diff --git a/package.json b/package.json index ad6ed9f..1d85dc2 100644 --- a/package.json +++ b/package.json @@ -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" ],