diff --git a/README.md b/README.md index cb347a8..12f50cc 100644 --- a/README.md +++ b/README.md @@ -145,6 +145,21 @@ The only one difference from Artistic QR-Code mentioned above is that you should +## Tips + +* Use a **square** picture instead of a rectangle one. + + 请采用**正方形**的图片 + +* If part of picture is transparent, the qr code will be like: ![](https://github.com/sylnsfar/qrcode/blob/master/example/aa.png) + + You can change it into white, then be like: ![](https://github.com/sylnsfar/qrcode/blob/master/example/a0.png) + + ​ + + 如果图片的模式是 “**RGBA**” 且 A 值为0(即透明无色),最终效果是:![](https://github.com/sylnsfar/qrcode/blob/master/example/aa.png) + + 你可以将透明部分修改成白色,最终效果会变成![](https://github.com/sylnsfar/qrcode/blob/master/example/a0.png) @@ -166,18 +181,19 @@ The only one difference from Artistic QR-Code mentioned above is that you should · , . : ; + - * / \ ~ ! @ # $ % ^ & ` [ ] ( ) ? _ { } | and (space) ``` - ​ + + ## Dependences 依赖库 -* Python 3 * pillow * numpy * [imageio](https://pypi.python.org/pypi/imageio) -## System 系统 -* Linux -* Windows \ No newline at end of file +## Environment 运行环境 + +* Linux, Python 3 +* Windows, Python 3 \ No newline at end of file diff --git a/example/a0.png b/example/a0.png new file mode 100644 index 0000000..476fbe8 Binary files /dev/null and b/example/a0.png differ diff --git a/example/aa.png b/example/aa.png new file mode 100644 index 0000000..b54777b Binary files /dev/null and b/example/aa.png differ