mnooner256 / pyqrcode

Python 3 module to generate QR Codes
BSD 3-Clause "New" or "Revised" License
408 stars 75 forks source link

Made PNG output more standard conform (quiet zone = 4 rows by default) #10

Closed heuer closed 9 years ago

heuer commented 9 years ago

The current implementation uses always a border of 1px which is not configurable. The recommended border (aka quiet zone) are 4 rows (4px if scale = 1).

This commit adds a configurable border size (default = 4). Note, that this is a backward incompatible change if users expect a border size of 1.

Further, I added the possibility to specify colors by hexadecimal values and to interpret background = None as transparent background.