qrcoder is getting too crowdy when adding a url #269
-
Hi If i tried to use the same url on the-qrcode-generator.com it is looking much simpler. Is there a way that i can achieve the smaller qr so that i can easily scan when i reduce the image size . Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Have you tried reducing the error-correction level? |
Beta Was this translation helpful? Give feedback.
-
Hi @krish7129 , I guess with "too crowdy" you mean too much "black and white boxes", correct? Those boxes represent data. Too reduce the amount of boxes for the same amount of input data (=your url), you can reduce the amount of error correction data that is saved inside the QR code. QRCodeGenerator qrGenerator = new QRCodeGenerator();
string myUrl = "The payload aka the text which should be encoded.";
QRCodeData qrCodeData = qrGenerator.CreateQrCode(myUrl, QRCodeGenerator.ECCLevel.L); By use of ECC Level => L less error correction data is coded into the QR code, which leads to less qr modules (=the black and white blocks). You can read more about the parameters here: https://github.com/codebude/QRCoder/wiki/How-to-use-QRCoder#parameters-of-the-createqrcode-method Note: Keep in mind that error correction data is used, to make QR codes easier scannable for QR code readers. ECC data is the magic which allows QR codes to be scanned, even if parts of the graphic are covered or lost. So if you reduce the ECC data your QR code becomes "less robust". |
Beta Was this translation helpful? Give feedback.
Hi @krish7129 ,
I guess with "too crowdy" you mean too much "black and white boxes", correct? Those boxes represent data. Too reduce the amount of boxes for the same amount of input data (=your url), you can reduce the amount of error correction data that is saved inside the QR code.
By use of ECC Level => L less error correction data is coded into the QR code, which leads to less qr modules (=the black and white blocks). You can read more about the parameters here: https://github.com/c…