My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 4: Make image does not create fill boxes correctly
2 people starred this issue and may be notified of changes. Back to list
Status:  New
Owner:  ----


 
Reported by da...@ernstrom.net, May 4, 2011
What steps will reproduce the problem?
1. Change the boxsize variable to 1 pixels per box
2. version 1 qr using testqr.py (QRCode(1, QRErrorCorrectLevel.L))
3. Add data of "abcdefghijklmnopq" which is the max that a ver 1 can hold

What is the expected output? What do you see instead?
Expected output is a 29x29 image that looks very clean and crisp.  4 pixel quiet zone, 21x21 qr code.  instead, I see a black blur.

What version of the product are you using? On what operating system?
rev 3, windows

Please provide any additional information below.
The solution is to change line 134 as follows:
"b = [(x,y),(x+boxsize - 1,y+boxsize - 1)]"
This will create accurately sized boxes to darken the modules for all of the versions.  This issue as defined scales up to all versions, but is likely not noticable due to the 'boxsize' default of 10 pixels.  The way the code defaults, your black modules are printed with dimensions of 11x11 and your white modules are left to be 9x9 (in most cases, depending on the B&W pattern being displayed).

Aug 26, 2011
#1 speed....@gmail.com
The patch in issue #5 includes this fix.

Powered by Google Project Hosting