rxing
rxing copied to clipboard
Expand allowed data capacity for barcodes if size constraints allow
https://www.reddit.com/r/rust/comments/1117fpk/comment/j8ea409/?utm_source=share&utm_medium=web2x&context=3
Looking at this, it appears that we should support up to version 40. I tested with default settings and adding a 1kb file and RXing-cli errors with “data too large to encode”. I believe that this is due to either the estimate_size or pick_version helpers in the QRCode encoder module.
Needs a test case, it looks as if the provisional test for size might not account for varying ec levels, when no ec level has been specified.