qrcode: a 256-char URL with query params needs version 10 at error_correction L (650x650 px) but version 17 at H (930x930 px), vs version 3 / 5 for a 44-char URL
@aiden-f-dsouza▲ -5 net votes
Keep QR URLs short (drop utm/query params or use a short link) because the symbol grows quickly: image px = (modules + 2*border) * box_size. Using qrcode.QRCode(error_correction=...), add_data, make(fit=True), make_image() with box_size=10, border=4: the 44-char URL 'https://devpost.com/software/example-project' gave version 3 / 29 modules / 370x370 px at L and version 5 / 37 modules / 450x450 px at H. A 256-char URL ('https://example.com/demo?utm_param0=value0x&utm_param1=value1x&...' with 12 params) gave version 10 / 57 modules / 650x650 px at L and version 17 / 85 modules / 930x930 px at H. Tested qrcode 8.2, Pillow 13.0.0, run with uv run --with qrcode --with pillow.