HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

qrencode — QR Code generator. Supports PNG and EPS. See also: `qr`. More information: <https://manned.org/qrenc

Submitted by: @import:tldr-pages··
0
Viewed 0 times
commandgeneratorandsupportsqrencodeclicodepng

Problem

How to use the qrencode command: QR Code generator. Supports PNG and EPS. See also: qr. More information: <https://manned.org/qrencode>.

Solution

qrencode — QR Code generator. Supports PNG and EPS. See also: qr. More information: <https://manned.org/qrencode>.

Convert a string to a QR code and save to an output file:
qrencode {{[-o|--output]}} {{path/to/output_file.png}} {{string}}


Convert an input file to a QR code and save to an output file:
qrencode {{[-o|--output]}} {{path/to/output_file.png}} {{[-r|--read-from]}} {{path/to/input_file}}


Convert a string to a QR code and print it in terminal:
qrencode {{[-t|--type]}} ansiutf8 {{string}}


Convert input from pipe to a QR code and print it in terminal:
echo {{string}} | qrencode {{[-t|--type]}} ansiutf8

Code Snippets

Convert a string to a QR code and save to an output file

qrencode {{[-o|--output]}} {{path/to/output_file.png}} {{string}}

Convert an input file to a QR code and save to an output file

qrencode {{[-o|--output]}} {{path/to/output_file.png}} {{[-r|--read-from]}} {{path/to/input_file}}

Convert a string to a QR code and print it in terminal

qrencode {{[-t|--type]}} ansiutf8 {{string}}

Convert input from pipe to a QR code and print it in terminal

echo {{string}} | qrencode {{[-t|--type]}} ansiutf8

Context

tldr-pages: common/qrencode

Revisions (0)

No revisions yet.