cssivision / react-native-qrcode

a minimalist qrcode component for react-native
MIT License
853 stars 303 forks source link

Difference between generated images #56

Closed rodrigofbm closed 6 years ago

rodrigofbm commented 6 years ago

I am generating the QR code based on the user's id (mongoDB). If I try to generate a QR code by some website that does this, I get a different image from the one generated by react-native-qrcode, could anyone tell me why?

j-ornelas commented 6 years ago

@rodrigofbm from https://stackoverflow.com/questions/5493183/qr-codes-same-url-different-image-why

There are 40 Versions (sizes) of QR Codes, 4 error correction levels and 8 masking possibilities giving a total of 1280 possible QR codes for any given input.

Typically the version is chosen based on the amount of data to be stored and the mask is chosen to produce the best image in terms of readability. The error correction level is chosen by the encoder based on how much data might need to be recovered...