This is a quick tool to create a QR code with personalize image in the center.
Python Imaging Library (PIL) is not easy to install. The easiest way is to install pillow. For people using conda, please find the corresponidng version of pillow.
qrcode is a package to render
qrcode. It can be installed by package management systems like pip
or conda
.
Simply copy the qrnizer.py
into your PYTHONPATH
directory.
# import QRnizer
from qrnizer import QRnizer
# Create your message (or link)
qr = QRnizer("Hello the world")
# insert the image
qr.insert_image("image_file")
# show the result and test
qr.show()
# save the result into a file
qr.save("new_file_name")