From dc783eddd9a92abb7b7feccdd284083316e2e153 Mon Sep 17 00:00:00 2001 From: Mariana Bedran Lesche Date: Fri, 27 Sep 2024 13:46:22 -0300 Subject: [PATCH] Update CHANGELOG and README --- CHANGES.rst | 3 +++ README.rst | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGES.rst b/CHANGES.rst index da2a8616..55c4df39 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 529fa7f6..ec383462 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())