jumpjack / greenpass

Pure javascript greenpass QR code decoder in browser
MIT License
16 stars 3 forks source link

createqr generates unrecognizable code for decodeqr #1

Open Gotbitsa opened 2 years ago

Gotbitsa commented 2 years ago

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.

jumpjack commented 2 years ago

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 commented 2 years ago

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.