lincolnloop / python-qrcode

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

ImageColorMask() is not defined #328

Open nryco opened 1 year ago

nryco commented 1 year ago

I don't understand why but they tell me that ImageColorMask() is not defined I checked in the library but I saw the class I don't understand.. My code image the colormask.py file image

pjarnhus commented 9 months ago

I am not sure if it is still relevant, but you need to provide an image or a path, when you instantiate the ImageColorMask object.

color_mask=ImageColorMask(color_mask_path='path_to_image')