banner
Geek

Geek

🧠在家居士 | 🥦素食者 | 🏃🏻马拉松爱好者 | 📡AI降临派 | 过🪜技术资深学者 | 🤖科技狂 | 📤更新狂🆅 https://www.igeekbb.com/
twitter
github

Amazing-QR only takes four steps to create a cool QR code.

TitleProject Address
Amazing-QRhttps://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).

Image Description Image Description Image Description Image Description

qrs2.jpg

qrs1.jpg


Installation#

Generate Normal QR Code#

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

carbon (2).png

Activate the virtual environment:#
source myenv/bin/activate

carbon (3).png

Install amzqr using pip:#
pip install amzqr

carbon (4).png

Run the command amzqr:#
amzqr https://github.com

carbon (5).png

🎉 Done!

/Users/geek/qrcode.png

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

qr_qrcode.png

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.

qr_qrcode.png

GIF Image#
amzqr https://x.geekbb.ml -p /Users/geek/qr/qr.gif -c -con 1.5 -bri 1.6

qr_qrcode.gif


Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.