greenpass icon indicating copy to clipboard operation
greenpass copied to clipboard

createqr generates unrecognizable code for decodeqr

Open Gotbitsa opened this issue 4 years ago • 2 comments

The HC1 prefixes of your sample images do not result in the same image as the corresponding sample images and can not be read by decodeqr.

Gotbitsa avatar Oct 09 '21 14:10 Gotbitsa

Sorry, I didn't specify that I am not the author of the qrdecode part, try opening an issue here:

https://github.com/klonikar/qrcodejs

Test data are instead taken from here:

https://github.com/eu-digital-green-certificates/dgc-testdata/tree/main/IT

jumpjack avatar Oct 09 '21 15:10 jumpjack

Anyway you are right, createqr.html creats an invalid QR code for any QR reader:

image

Weird thing is that the recreated valid QR code is completely different, and simpler, than the original, but it contains exactly same data.

jumpjack avatar Oct 09 '21 16:10 jumpjack