Skip to content
/ QrGen Public

QrGen is a simple Python tool that allows users to create customized QR codes with the option to change colors, add logos, and define custom filenames. Whether you need a QR code for a URL, text, or any other information, this tool makes it easy to personalize and save the QR code to your system.

Notifications You must be signed in to change notification settings

Dev-0618/QrGen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

QrGen

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.

Features

  • 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.

Installation

  1. Clone the repository:

    git clone https://github.com/Dev-0618/QrGen.git
    cd QrGen
  2. Install the required dependencies:

    pip install -r requirements.txt

Usage

Run the script using the following command:

python qrgen.py

Input Prompts:

  1. Enter the text or URL for the QR code: The main content for the QR code (text or URL).
  2. Enter the background color: Choose a background color for the QR code (default is white).
  3. 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).
  4. 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

Requirements

  • Python 3.x
  • qrcode library
  • Pillow library

To install dependencies:

pip install -r requirements.txt

About

QrGen is a simple Python tool that allows users to create customized QR codes with the option to change colors, add logos, and define custom filenames. Whether you need a QR code for a URL, text, or any other information, this tool makes it easy to personalize and save the QR code to your system.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages