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.
-
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.
To run the Enhanced QR Code & Barcode Generator, you need to install the required dependencies. Follow these steps:
-
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
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the dependencies:
pip install -r requirements.txt
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
To run the application, execute the following command in your terminal:
python src/main.py
- Select Code Type: Choose the type of code you want to generate from the dropdown menu.
- Enter Data: Input the data you want to encode.
- QR Code Settings (if applicable):
- Version (1-40)
- Error Correction Level (L, M, Q, H)
- Box Size
- Border Size
- Barcode Settings (if applicable):
- Module Width
- Module Height
- Font Size
- Text Distance
- Color Customization:
- Fill Color
- Background Color
- Batch Generation:
- Toggle batch export and enter data separated by commas for batch processing.
- Embed Logo:
- Option to embed a logo or image into the QR code for enhanced branding.
- Generate or Preview:
- Click "Generate" to save the code as an image file.
- Click "Preview" to see a preview of the code.
Contributions are welcome! If you have suggestions for improvements or new features, feel free to create an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE.txt for more details.
- 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.