This is a simple Python script to generate high-quality QR codes from text input. The QR code is saved as a PNG file.
Ensure you have Python 3 installed on your system. You can download it from python.org.
-
Clone or download the repository:
You can download the repository using Git. Open your terminal/command prompt and run:
git clone https://github.com/slyfox29/QR_gen.git
Alternatively, you can download the repository directly as a ZIP file by following these steps:
- Navigate to the GitHub page of the repository: https://github.com/slyfox29/QR_gen.
- Click on the green "Code" button located at the top right corner.
- Select "Download ZIP" from the dropdown menu.
- Extract the downloaded ZIP file to a directory of your choice.
Once you have downloaded the repository, follow these steps:
-
Navigate to the directory:
After downloading, navigate to the directory containing the script:
cd QR_gen
-
Install dependencies:
Install the required Python libraries by running:
pip install -r requirements.txt
-
Run The Script:
Run the script using Python 3:
python3 QRCode_gen.py
You will be prompted to enter the text you want to convert to a QR code and the name of the output image file (without the extension).
Enter text to generate QR: Your text or url Enter image name to save: output_image_name
After you input the text and image name, the script will generate a high-quality PNG file with the specified name containing the QR code.