qrtool
qrtool is a command-line utility for encoding or decoding QR code.
Installation
From source
From binaries
The release page contains pre-built binaries for Linux, macOS and Windows.
How to build
Please see BUILD.adoc.
Usage
Basic usage
Encode a string in a QR code:
Generate this image:
Decode a QR code from this image:
Output:
QR code
SVG generation
Generate this image:
Micro QR code generation
Generate this image:
Colored output
Generate this image:
Generate shell completion
--generate-completion
option generates shell completions to stdout.
The following shells are supported:
bash
elvish
fish
powershell
zsh
Example:
Integration with other programs
Both encode
and decode
can read from stdin and output to stdout.
The following example, the encoded result is saved as a JPEG XL image:
| |
The following example, the decoded result is displayed by bat
:
| |
Command-line options
Please see the following:
Changelog
Please see CHANGELOG.adoc.
Contributing
Please see CONTRIBUTING.adoc.
License
Copyright © 2022–2023 Shun Sakai (see AUTHORS.adoc)
This program is distributed under the terms of either the Apache License 2.0 or the MIT License.
See COPYRIGHT, LICENSE-APACHE and LICENSE-MIT for more details.