Skip to content

Commit dc783ed

Browse files
committed
Update CHANGELOG and README
1 parent 68f3b29 commit dc783ed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ Change log
1818
- Removed ``typing_extensions`` as a dependency, as it's no longer required with
1919
having Python 3.9+ as a requirement.
2020

21+
- Only allow high error correction rate (`qrcode.ERROR_CORRECT_H`) when generating
22+
QR codes with embedded images to ensure content is readable
23+
2124
.. _Poetry: https://python-poetry.org
2225
.. _ruff: https://astral.sh/ruff
2326

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ and an embedded image:
227227
from qrcode.image.styles.moduledrawers.pil import RoundedModuleDrawer
228228
from qrcode.image.styles.colormasks import RadialGradiantColorMask
229229
230-
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_L)
230+
qr = qrcode.QRCode(error_correction=qrcode.constants.ERROR_CORRECT_H)
231231
qr.add_data('Some data')
232232
233233
img_1 = qr.make_image(image_factory=StyledPilImage, module_drawer=RoundedModuleDrawer())

0 commit comments

Comments
 (0)