Open macmichael01 opened 1 year ago
You are trying to put too much data in your qr code https://en.wikipedia.org/wiki/QR_code#Information_capacity
That seems plausible, although checking the character length, I found was 1171 which seems to be under the max size limit.
I commented out the line: error_correction=qrcode.constants.ERROR_CORRECT_H,
and the qrcode generated. I am also able to use ERROR_CORRECT_L
I'm guessing that error correction adds some parity bits that exceed the max allowed characters in a QRCode.
It would be nice there was a better error message indicating what happened.
I am getting an error when trying to embed an image into a vcard whether that be by link or base64 encode. Here is the source code:
Here is the error which happens after
image = qr.make_image(...)
:I even tried to make a vcard in Mac OS Contacts App with an image embded and paste the string value within the card file and I got the same error. When I strip out the photo part of the vcard, the qrcode generates without error.