Code used to make our cool QR Codes. It uses the segno and qrcode-artistic
libraries.
Requires uv.
- Update the
target_linkvariable with the link you want the QR Code to point to - Update the
background_imagevariable with the image you want to be embedded in the QR Code - Update the
output_filevariable with what you want the QR Code to be named - Run the file with
uv run qrcode-maker.py. Dependencies are resolved automatically via inline metadata. The resulting QR Code should appear in the same directory as the source code.
If your image has a transparent background you may get some distortion in the resulting QR Code. We were able to fix this by removing the background using an online image background remover.
