lincolnloop / python-qrcode

Python QR Code image generator
https://pypi.python.org/pypi/qrcode
Other
4.27k stars 662 forks source link

`fill_color` and `back_fill` parameters ignored #311

Open wanaks opened 1 year ago

wanaks commented 1 year ago

Running the following code (taken from the project's README) produces a QR code with a black image and a white background. I would have expected a solid red square given the values for fill_color and back_fill:

import qrcode
qr = qrcode.QRCode(
    version=1,
    error_correction=qrcode.constants.ERROR_CORRECT_L,
    box_size=10,
    border=4,
)
qr.add_data('Some data')
qr.make(fit=True)

img = qr.make_image(fill_color="red", back_color="red")
img.save("test.png")
LEOSCHUMY commented 1 year ago

It works in 7.3.1 version, not in lastest releases