Skip to content

Try lower ECC levels if we exceed the maximum QR code content size

This allows to still produce valid code in that case, even if that comes at the expense of redundancy.

This fixes generation of ICAO VDS-NC QR codes, which contain so much JSON that they don't work with the default ECC level Q used by Prison.

Needed for https://invent.kde.org/plasma-mobile/vakzination/-/issues/13

Merge request reports