sayanarijit / qrcode.show

[WORKING PROTOTYPE] Generate QR code easily for free - QR Code Generation as a Service
https://QRcode.show
GNU Affero General Public License v3.0
596 stars 32 forks source link

Adding quiet zone header to control the quiet zone #9

Closed raunsbaekdk closed 2 years ago

raunsbaekdk commented 2 years ago

Hi @sayanarijit

This adds a quiet zone header. The quiet zone is a padding that is added to the QR code to help avoid the scanner picking up it's surroundings. Ressource: https://delivr.com/faq/1455/whats-with-the-white-border-around-the-qr-code

I have added the quiet zone function call to all formats. The default behaviour is false. My change will not interfere with the default behaviour that this library has. It will however give me the option to disable the quiet zone.

Warning: I do not usually develop in Rust. Which means I probably hasn't done it the right way. You know the gist though. So maybe you can help ease out the kinks?

sayanarijit commented 2 years ago

Hey thanks 👍. I'll review soon.

sayanarijit commented 2 years ago

Works perfectly.