File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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())
You can’t perform that action at this time.
0 commit comments