qrcodejs icon indicating copy to clipboard operation
qrcodejs copied to clipboard

Added quiet zone / border option

Open nosrevi opened this issue 10 years ago • 4 comments

Added quiet zone / border option. I understand that you can use css margin as stated in issue #21, but when you save the QR code as an image, there's no border. This can cause the QR code not recognizable. I reproduced the issue when saving the image on the cellphone.

I set the default border size to 4 module according to ISO/IEC 18004 standard.

nosrevi avatar Feb 24 '15 04:02 nosrevi

:+1: This is exactly what I needed. Thanks.

kosso avatar Mar 28 '16 13:03 kosso

Thanks for the commit! I wonder why this haven't been merged yet.

Also, did you notice that there is a thin grey border on the top of the QRCode?

alexanderdino avatar Dec 13 '16 03:12 alexanderdino

Works like a charm thanks

PierreTrp avatar May 06 '18 16:05 PierreTrp

Ran into this issue when implementing Dark Mode on my website - the QR code will not scan if there isn't a white region surrounding it.

Given how many times this issue has been reported, are any of the maintainers around to review/merge this?

crozone avatar Aug 25 '21 01:08 crozone