Title | Project Address |
---|---|
Amazing-QR | https://github.com/x-hw/amazing-qr |
- Amazing QR is an open-source Python application used to generate cool QR code images and dynamic GIF images.
It can generate normal QR codes, artistic QR codes with images (black and white and color), and dynamic QR codes (black and white and color).
Installation#
Generate Normal QR Code#
Using Virtual Environment (Recommended)#
Installing and running amzqr in a virtual environment ensures that the correct Python interpreter and module installation path are used.
First, open the terminal and create a new virtual environment:
python3 -m venv myenv
Activate the virtual environment:#
source myenv/bin/activate
Install amzqr using pip:#
pip install amzqr
Run the command amzqr
:#
amzqr https://github.com
🎉 Done!
/Users/geek/qrcode.png
Generate Artistic QR Code#
Black and White Image#
The parameter -p is used to combine the QR code image with an image in the same directory to generate a black and white image. I put the avatar in the qr folder.
amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.jpg
Color Image#
Adding the parameter -c can change the generated image from black and white to color.
amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.jpg -c -con 1.5 -bri 1.6
- The parameter -con is used to adjust the contrast of the image. A value of 1.0 represents the original image, smaller values represent lower contrast, and larger values represent higher contrast. The default value is 1.0.
- The parameter -bri is used to adjust the brightness of the image. It has the same usage and values as -con.
GIF Image#
amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.gif -c -con 1.5 -bri 1.6