| QRTOOL-DECODE(1) | General Commands Manual | QRTOOL-DECODE(1) |
NAME
qrtool-decode - detect and decode a QR code
SYNOPSIS
qrtool decode [OPTION]... [IMAGE]
DESCRIPTION
This command detects and decodes a QR code https://www.qrcode.com from a raster or vector image. By default, the result will be output to standard output.
Supported image file formats
Use -t option to specify the image format. If this option is not specified, the image format is determined based on the extension or the magic number.
Caution
This command only supports decoding a
normal QR code https://www.qrcode.com/codes/model12.html, and
does not support decoding a Micro QR code
https://www.qrcode.com/codes/microqr.html and a rMQR code
https://www.qrcode.com/codes/rmqr.html.
POSITIONAL ARGUMENTS
IMAGE
OPTIONS
-t, --type FORMAT
The possible values are:
bmp
dds
farbfeld
gif
hdr
ico
jpeg
openexr
png
pnm
qoi
svg
tga
tiff
webp
xbm
--verbose
--metadata
-h, --help
-V, --version
EXIT STATUS
0
1
2
Exit statuses other than these are defined by <sysexits.h> https://man.openbsd.org/sysexits.
NOTES
Source repository:
EXAMPLES
Detect and decode a QR code from the given image:
Decode a QR code from the given WebP image:
Also print the metadata when decoding a QR code:
REPORTING BUGS
Report bugs to:
COPYRIGHT
Copyright © 2022 Shun Sakai and contributors
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
qrtool(1), qrtool-completion(1), qrtool-encode(1), zbarimg(1)
| 2025-11-28 | qrtool 0.13.2 |