-
Notifications
You must be signed in to change notification settings - Fork 693
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: glog(0)
when encoding binary data
#330
Comments
Soon after posting I also discovered that the code above works on 7.3.1, but not on any 7.4.* version. |
i am having same problem with 7.4.* its working with the strings but not with bytes |
Maybe you can encode your data to base64 before |
OP here. For anyone encountering the problem, I eventually created my own QR encoder (also supports other barcodes). It's based on a very established C library and has very good support for any kind of data (binary included). |
I found a solution for myself: When using qr.make, I explicitly specify the fit=False parameter. |
I'm encoding a binary image file using a QR code. In the example below I'm creating a QR code version 20 with error correction H, which should allow me to pass 382 bytes in. After calling make I'm getting an error:
Can you please help me out?
The text was updated successfully, but these errors were encountered: