Skip to content

The Enhanced QR Code & Barcode Generator, developed in Python using Tkinter, allows users to create various barcodes and QR codes with extensive customization. It supports formats like QR Code, EAN13, Code128, and DataMatrix, offering real-time preview and saving options.

License

Notifications You must be signed in to change notification settings

CARL-JOSEPH-LEE/An-enhanced-QR-Code-Barcode-Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Enhanced QR Code & Barcode Generator

封面图

Table of Contents

Overview

The Enhanced QR Code & Barcode Generator is a powerful and versatile application developed using Python and the Tkinter library. This tool allows users to generate a wide variety of barcodes and QR codes, customize their appearance with extensive options, preview them in real-time, and save them in multiple image formats. Supported formats include QR Code, EAN13, EAN8, Code128, Code39, UPCA, ISBN13, ISBN10, ISSN, PZN, JAN, ITF, GS1-128, DataMatrix, Aztec, and PDF417. This version offers significant improvements in customization and usability, making it an indispensable tool for anyone needing robust barcode and QR code solutions.

Features

  • QR Code Generation: Create QR codes with customizable parameters such as versions (1-40), error correction levels (L, M, Q, H), box sizes, and border sizes. This ensures the generated QR codes meet the specific needs and constraints of different applications.

  • Barcode Generation: Generate an extensive range of barcodes including EAN13, EAN8, Code128, Code39, UPCA, ISBN13, ISBN10, ISSN, PZN, JAN, ITF, and GS1-128. Adjust parameters such as module width, module height, font size, and text distance to fine-tune the barcode appearance for various use cases.

  • DataMatrix, Aztec, and PDF417 Codes: Support for additional 2D barcode formats like DataMatrix, Aztec, and PDF417, expanding the range of encoding options available to users.

  • Color Customization: Choose custom fill and background colors for the generated codes, allowing for personalized and visually distinct barcodes and QR codes.

  • Preview Functionality: Preview the generated codes in a dedicated preview window before saving, ensuring the output meets the desired specifications and appearance.

  • Save Options: Save the generated codes in various formats including PNG, JPG, BMP, GIF, TIFF, ICO, WEBP, SVG, PDF, EPS, PBM, PGM, PPM, XBM, XPM, PCX, and TGA, providing flexibility in how the codes are used and shared.

  • Error Handling and Validation: Robust error handling and input validation ensure that the data entered for generating codes is correct and meets the required standards, preventing common mistakes and ensuring high-quality output.

  • User-Friendly Interface: The application features an intuitive and user-friendly interface with clear instructions and easy-to-navigate settings, making it accessible to both novice and experienced users.

  • Batch Generation: Support for generating multiple QR codes or barcodes in a batch, significantly speeding up workflows that require numerous codes.

  • Logo Embedding: Ability to embed logos or images into QR codes, enhancing brand recognition and aesthetics.

  • Template System: Save and load templates for frequently used settings, making the generation process faster and more efficient.

Installation

To run the Enhanced QR Code & Barcode Generator, you need to install the required dependencies. Follow these steps:

  1. Clone the repository:

    git clone https://github.com/CARL-JOSEPH-LEE/An-enhanced-QR-Code-Barcode-Generator.git cd An-enhanced-QR-Code-Barcode-Generator

  2. Create a virtual environment:

    python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate

  3. Install the dependencies:

    pip install -r requirements.txt

Requirements

Pillow==10.3.0 qrcode==7.4.2 python-barcode==0.15.1 pylibdmtx==0.1.10 pdf417gen==0.8.0 PyQRCodeNG==1.3.6 ttkbootstrap==1.10.0 reportlab==4.2.2 svgwrite==1.4.3

You can install the dependencies via pip:

pip install tkinter qrcode python-barcode pylibdmtx pillow pdf417gen pyqrcodeng ttkbootstrap reportlab svgwrite

Usage

To run the application, execute the following command in your terminal:

python src/main.py

User Interface

  1. Select Code Type: Choose the type of code you want to generate from the dropdown menu.
  2. Enter Data: Input the data you want to encode.
  3. QR Code Settings (if applicable):
    • Version (1-40)
    • Error Correction Level (L, M, Q, H)
    • Box Size
    • Border Size
  4. Barcode Settings (if applicable):
    • Module Width
    • Module Height
    • Font Size
    • Text Distance
  5. Color Customization:
    • Fill Color
    • Background Color
  6. Batch Generation:
    • Toggle batch export and enter data separated by commas for batch processing.
  7. Embed Logo:
    • Option to embed a logo or image into the QR code for enhanced branding.
  8. Generate or Preview:
    • Click "Generate" to save the code as an image file.
    • Click "Preview" to see a preview of the code.

Screenshots

Preview

Contribution

Contributions are welcome! If you have suggestions for improvements or new features, feel free to create an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE.txt for more details.

Acknowledgements

  • The qrcode library for QR code generation.
  • The python-barcode library for barcode generation.
  • The pylibdmtx library for DataMatrix code generation.
  • The Pillow library for image processing.
  • The pdf417gen library for PDF417 code generation.
  • The pyqrcodeng library for Aztec code generation.
  • The ttkbootstrap library for enhancing Tkinter's GUI style.
  • The reportlab library for PDF file generation.
  • The svgwrite library for SVG file generation.

CARL-JOSEPH-LEE's GitHub stats

GitHub Streak

Profile views

About

The Enhanced QR Code & Barcode Generator, developed in Python using Tkinter, allows users to create various barcodes and QR codes with extensive customization. It supports formats like QR Code, EAN13, Code128, and DataMatrix, offering real-time preview and saving options.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages