tldr/pages/common/qrencode.md

21 lines
567 B
Markdown
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

# qrencode
> QR Code generator. Supports PNG and EPS.
> More information: <https://fukuchi.org/works/qrencode>.
- Convert a string to a QR code and save to an output file:
`qrencode -o {{path/to/output_file.png}} {{string}}`
- Convert an input file to a QR code and save to an output file:
`qrencode -o {{path/to/output_file.png}} -r {{path/to/input_file}}`
- Convert a string to a QR code and print it in terminal:
`qrencode -t ansiutf8 {{string}}`
- Convert input from pipe to a QR code and print it in terminal:
`echo {{string}} | qrencode -t ansiutf8`