The qrinfo
command outputs the contents of a QR code along with its encoding parameters.
$ qrinfo /path/to/image.png
Data: some QRCode example
Version: 3
ECC: H
Mask: 3
Data Type: Byte
ECI: ISO-8859-1 (default)
Direct downloads are available through the releases page.
Using homebrew on macOS (Go not required):
brew install rs/tap/qrinfo
From source:
go install github.com/rs/qrinfo@latest
The qrinfo
command supports multiple methods for providing the QR code image data:
Pass the path to the image as the first and only argument:
qrinfo /path/to/image
Send the image data via standard input:
qrinfo < /path/to/image
some-command | qrinfo
If qrinfo
is executed without arguments and no piped input, it will attempt to fetch image data from your clipboard, if available.