Incorporate 4-module "quiet zone" around codes #43

wants to merge 1 commit into


None yet
1 participant

jepler commented Mar 30, 2013

According to wikipedia, QR codes should incorporate a 4-module "quiet zone", a region of white around all 4 sides of the QR code. This patch implements that as the default. Users can control this behavior by setting the margin option.

Note: if you're wary of changing the default then I'm happy to prepare a different pull request that causes margin to default to 0.

I prepared this patch after reading in part because of the apparent opera bug in the rendering of the final row of the table. If this final row is a quiet row then the opera bug would not affect the decodeability of the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment