QrGen is a simple and customizable QR code generator tool written in Python. It allows you to create QR codes with custom text, URLs, background colors, and optional logo images. The generated QR codes can be saved as PNG files with your desired filename.
- Generate QR codes from any text or URL.
- Customize background color for the QR code.
- Add a logo (optional) to the center of the QR code.
- Specify the output file name for the generated QR code.
- Easy-to-use command-line interface.
-
Clone the repository:
git clone https://github.com/Dev-0618/QrGen.git cd QrGen
-
Install the required dependencies:
pip install -r requirements.txt
Run the script using the following command:
python qrgen.py
- Enter the text or URL for the QR code: The main content for the QR code (text or URL).
- Enter the background color: Choose a background color for the QR code (default is white).
- Enter the path to a logo image (optional): Add an optional logo to the center of the QR code (provide the path to a
.png
logo). - Enter the file name to save the QR code: Choose the filename to save the generated QR code (default is
qrcode.png
).
Example:
Enter the text or URL for the QR code: https://www.example.com
Enter the background color (default: white): yellow
Enter the path to a logo image (optional, press Enter to skip):
Enter the file name to save the QR code (default: qrcode.png): custom_qr.png
QR code saved as custom_qr.png
- Python 3.x
qrcode
libraryPillow
library
To install dependencies:
pip install -r requirements.txt