You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had to dig for the following information to understand why the QRCode I was generating was not working:
There's an inherent risk to using an image in the QR Code. Specifically the risk is that it takes away too much of the actual scannable portion. By excavating (as seems to be the difference in your demos) you're actually taking away even more modules, not just the ones that are getting covered by the image. I don't have any protections in there to prevent embedding an image that covers up more than the error correction level can handle (the math got messy, transparent images change the math) so if you find yourself with a QR Code that doesn't scan, you need to correct that yourself. You have 2 options:
Change the ratio of QR Code to image size. Make the image smaller or the QR Code bigger.
Increase the Error level (level), which will result in smaller modules with a better ability to handle covered areas.
The text was updated successfully, but these errors were encountered:
poissoj
changed the title
There's an inherent risk to using an image in the QR Code. Specifically the risk is that it takes away too much of the actual scannable portion. By excavating (as seems to be the difference in your demos) you're actually taking away even more modules, not just the ones that are getting covered by the image. I don't have any protections in there to prevent embedding an image that covers up more than the error correction level can handle (the math got messy, transparent images change the math) so if you find yourself with a QR Code that doesn't scan, you need to correct that yourself. You have 2 options:
Document how to use image
Oct 20, 2020
This comment helped me figure out why my QRCode was invalid when I added an image inside.
I increased the error correction level, and it worked.
I think this deserves more visibility.
I had to dig for the following information to understand why the QRCode I was generating was not working:
Originally posted by @zpao in #100 (comment)
The text was updated successfully, but these errors were encountered: