Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Under Python 3.12 fill_color and back_color are ignored #371

Open
crystalfp opened this issue Sep 2, 2024 · 0 comments
Open

Under Python 3.12 fill_color and back_color are ignored #371

crystalfp opened this issue Sep 2, 2024 · 0 comments

Comments

@crystalfp
Copy link

I'm an happy user of qrcode that had to upgrade python to 3.12.
Now suddenly the colors I use are ignored. The following code generates an image with fill_color black and back_color white.

import qrcode
qr = qrcode.QRCode(version = None, box_size = 5)
qr.add_data('https://example.com/')
qr.make(fit=True)
img = qr.make_image(fill_color = 'white', back_color = 'black')
img.save('example.png')

Same behavior if I use the color tuples.
What should I do?
Thanks!
mario

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant