angular-qrcode
angular-qrcode copied to clipboard
Add margin
Hi, this adds a margin to the QR. When background color is dark, position detection pattern is unrecognizable.
Thanks for the contribution :)
Sorry, I may be missing the point here, could this not just be handled in CSS?
.qrcode {margin: 10px;}
@monospaced Yeah it will work on a web page with css. However it may not work as a downloaded image. If I download the QR code and open it in a image viewer, I may not have the ability to control the background color.
To show you an example, the following QR is not scannable.

The source QR code is this
.
The default android photo app uses black background color, that's where I find the issue is.
Thanks for the explanation, great stuff!