diff --git a/CHANGES.rst b/CHANGES.rst index da2a861..55c4df3 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -18,6 +18,9 @@ Change log - Removed ``typing_extensions`` as a dependency, as it's no longer required with having Python 3.9+ as a requirement. +- Only allow high error correction rate (`qrcode.ERROR_CORRECT_H`) when generating + QR codes with embedded images to ensure content is readable + .. _Poetry: https://python-poetry.org .. _ruff: https://astral.sh/ruff diff --git a/README.rst b/README.rst index 529fa7f..ec38346 100644 --- a/README.rst +++ b/README.rst @@ -227,7 +227,7 @@ and an embedded image: from qrcode.image.styles.moduledrawers.pil import RoundedModuleDrawer from qrcode.image.styles.colormasks import RadialGradiantColorMask - qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_L) + qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_H) qr.add_data('Some data') img_1 = qr.make_image(image_factory=StyledPilImage, module_drawer=RoundedModuleDrawer())