Skip to content
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

Ability to limit number of indices #23

Open
fidian opened this issue Mar 19, 2025 · 0 comments
Open

Ability to limit number of indices #23

fidian opened this issue Mar 19, 2025 · 0 comments

Comments

@fidian
Copy link

fidian commented Mar 19, 2025

When sending a large file with thousands of blocks, it doesn't make sense to have the slim possibility of generating data with hundreds or thousands of indices. The generated QR code data is Base64, so every index (four bytes) adds 5.333 characters to the output for the QR code. With the default slice of 1000, adding 250 indices to the payload will double the amount of data to be encoded into a QR code. These problematic frames will fail to encode when they are too large.

I propose a limit to the number of indices per encoded chunk. This would free up bits in the first byte, potentially allowing completion of #13 without increasing the encoded data size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant