You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[ ] Bug
[ ] Question (e.g. about handling/usage)
[X ] Request for new feature/improvement
Expected Behavior
When using the PngByteQRCode.GetGraphic() the resulting image should have no whitespace around the QR code.
Current Behavior
Whitespace is added around the qrcode in the resulting image.
Possible Solution (optional)
There should be either (1) the option to disable whitespace around the QR code or (2) the ability to specify the amount of whitespace that would include the option for 0.
Hello @ctorx ,
first of all - the "whitespace" around the QR code is not a peculiarity of the QR coder, but a requirement of the official QR code standard. In the standard this whitespace is called "quiet zone". It is intended to ensure that the QR Code can be recognized by reading devices in the best possible way.
Nevertheless, I understand your requirement and this is not the first time I've heard it. (Because the QR Codes can remain readable even without the quiet zones or the developer can also take care of a sufficient quiet zone himself when embedding the QR Code).
For this reason I added a new, additional and optional parameter "drawQuietZone" (type: bool). If you set this parameter to "false", the quiet zone will not be rendered. You can find hints on how to use it in the wiki.
The parameter is available now in the CI-build or with the release of the official version 1.4.2 on Nuget. (Official release will follow soon...)
Type of issue
[ ] Bug
[ ] Question (e.g. about handling/usage)
[X ] Request for new feature/improvement
Expected Behavior
When using the PngByteQRCode.GetGraphic() the resulting image should have no whitespace around the QR code.
Current Behavior
Whitespace is added around the qrcode in the resulting image.
Possible Solution (optional)
There should be either (1) the option to disable whitespace around the QR code or (2) the ability to specify the amount of whitespace that would include the option for 0.
Your Environment
The text was updated successfully, but these errors were encountered: