Hi,
We have been using this asset to generate QR codes, and sometimes multiple of them are displayed below each other. However we found out that some QR codes have white borders around them. Is there any way to remove them?
Kind regards,
Bas
Hi Bas,
Based on the amount of data, the QR code needs more or less black & white squares to generate the code.
As input, we have the width, height, and margin in pixels.
The problem you're facing, is that the width and height in pixels are not fitting the number of black & white squares needed to generate the code and the system uses whitespace to match the requested image size.
On the GitHub page of the library, this issue is also known via issue #570 (https://github.com/micjahn/ZXing.Net/issues/570) and it has a work-around.
When you underdefine the size of the QR-code, it will enlarge the image to fit the minimum QR Code. You can then resize the picture with another Forge component to make it the exact size that you need.I hope that this helps until the issue is also solved on the Github Library.