lincolnloop / python-qrcode

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

Is it possible to generate QR code with 2 colors? #280

Closed alperiox closed 2 years ago

alperiox commented 2 years ago

Is it possible to generate QR codes with more than 1 foreground color with this package? like the image here?

heuer commented 2 years ago

Acc. to my knowledge it is not possible.

That particular image was generated by Segno see https://segno.readthedocs.io/en/stable/colorful-qrcodes.html

alperiox commented 2 years ago

Yeah, I know it is possible with Segno. I've wondered if it is possible with qrcode too, thanks for the answer!

xtream1101 commented 1 year ago

@alperiox I wanted this feature too. I kept it simpler then your example and just allow the main data be one color and then the eye/location marker can have 2 colors. This repo is like a plugin for this qrcode library that has custom module_drawers to pass in.

If you wanted to check it out https://github.com/xtream1101/qrcode-xcolor