This project is licensed under the MIT License. See the LICENSE file for details.
This project is a tool written in Python designed to help users quickly generate barcode images in bulk. It utilizes the python-barcode
library to generate barcodes and the Pillow
library for image output processing.
Ensure you have Python installed. If not, visit python.org to download and install the latest version.
Run the following command in the terminal to install the necessary Python packages:
pip install python-barcode
pip install Pillow
Download the source code of this repository
Open the main.barcode
file and replace its contents with the barcode data you need to generate, with each data entry on a new line.
In the project directory, run the main.py
script via the terminal:
python main.py
This will generate barcode images based on the data in main.barcode
.
When the terminal prompts "Done.", the generation is complete
The generated barcode images will be saved in the images
folder. You can find and use the images from there.
To avoid duplicates, it is recommended to delete all images in the images
folder before running the program again.
By default, the barcode images are sized at 600x400 pixels. You can adjust this setting in the main.py
file.