This python script can be used with command line or as import from another script.
For additional information call:
python ./pyqrtool.py -h
Short | Expand | Description |
---|---|---|
-h | --help | Help menu |
-i | --input | QR-Payload |
-o | --output | Output *.png file |
-s | --setup | Configuration |
-f | --folder | Output folder |
# Without setup
python ./qrimage.py -f ./temp -i https://github.com/0x007e -o Test.png
# With setup
python ./qrimage.py -f ./temp -i https://github.com/0x007e -s ./qrimage.setup.json -o Test.png
# The QR-Code png image should be created in temp/Test.png
qrimage: QRImage = QRImage("./temp")
# Call of setup is for standard configuration not necessary
qrimage.setup(1, qrerror.L, 20, 10)
qrimage.create("https://github.com/0x007e", filename="Test.png")