heuer / segno

Python QR Code and Micro QR Code encoder
https://pypi.org/project/segno/
BSD 3-Clause "New" or "Revised" License
631 stars 54 forks source link

Creation of Micro QR Code leaves areas undefined #3

Closed heuer closed 8 years ago

heuer commented 8 years ago
>>> import segno
>>> from segno import writers
>>> qr = segno.make('test')
>>> qr.designator
'M3-M'
>>> qr.mask
3
>>> writers.write_svg_debug(qr.matrix, qr._version, 'issue-3.svg')
heuer commented 8 years ago

bug-3

heuer commented 8 years ago

Matrix after placing final message codewords bug-3-codewords

heuer commented 8 years ago

Reason: Not enough padding / terminator / remainder bits (M1 - M4 dont' have remainder bits)