Title | Project Address |
---|---|
Amazing-QR | https://github.com/x-hw/amazing-qr |
- Amazing QR is an open-source Python application for generating cool QR code images and dynamic GIF images.
It can generate normal QR codes, artistic QR codes with images (black and white or color), and dynamic QR codes (black and white or color).
Installation#
Generate Normal QR Code#
Use 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 amzqr
command#
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 produce 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 -c parameter 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 -con parameter is used to adjust the contrast of the image. 1.0 represents the original image, smaller values represent lower contrast, and larger values represent higher contrast. The default value is 1.0.
- The -bri parameter is used to adjust the brightness of the image. The usage and values are the same as -con.
GIF Image#
amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.gif -c -con 1.5 -bri 1.6