BoneyQR is a simple command-line interface (CLI) tool for generating QR codes from text input. It utilizes the ZXing library and provides various options for customizing the output QR code image. It also renders QR code into text provided an input path is given.
- Java 17 or later
- Maven 3.9.6 or later
- Clone the repository:
git clone https://github.com/dvc-77/QRCodeGenerator.git
- Navigate to the project directory:
cd QRCodeGenerator
3.Build the project using Maven:
mvn clean install
java -jar target/bqr-jar-with-dependencies.jar [OPTIONS] <text>
-v
,--verbose
: Enable verbose output for more detailed information.-s
,--size
: Specify the size of the QR code image (default: 200).-f
,--format
: Set the image format for the QR code (default: png).-d
,--directory
: Specify the output directory for the generated QR code image.-o
,--output-name
: Set the name of the output file for the QR code image.-r
,--read
: Specify the input directory for the QR code image to be rendered to text.
- Generate a QR code with default settings:
java -jar target/bqr-jar-with-dependencies.jar "https://example.com"
- Generate a QR code with custom size and format:
java -jar target/bqr-jar-with-dependencies.jar -s 300 -f jpg "https://example.com"
- Generate a QR code with a specific output directory and file name:
java -jar target/bqr-jar-with-dependencies.jar -d /path/to/output -o my_qrcode "https://example.com"
- Generate text from QR code:
java -jar target/bqr-jar-with-dependencies.jar -r /path/to/qrcode.png
Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
This project is licensed under the MIT License.