No description
  • C++ 99.3%
  • CMake 0.7%
Find a file
Michael Ochmann 6794e1cf59 fixed help2man
2024-07-25 19:05:26 +02:00
docs changed sizing of svgs 2023-02-23 10:43:26 +01:00
lib initial commit 2023-02-22 10:29:48 +01:00
src fixed help2man 2024-07-25 19:05:26 +02:00
.gitignore initial commit 2023-02-22 10:29:48 +01:00
CMakeLists.txt fixed help2man 2024-07-25 19:05:26 +02:00
LICENSE.md initial commit 2023-02-22 10:29:48 +01:00
main.cpp code quality: consolidated helpers to single header 2023-03-05 17:37:48 +01:00
README.md readme: added basic project information 2023-02-26 20:28:50 +01:00

qr

a QR code generator for the command line

qr

Usage

This software currently supports outputting to the following formats:

  • svg
  • PNG
  • JPG
  • Bitmap

or directly to the console, as kind of an "ascii art".
after installing via make install, you can read more in the man page by calling man qr.

Options

  -f --format     output file format. can be one of "cli, png, svg, jpg, bmp"
  -h --help       show this help
  -i --input      take data from this argument instead of stdin
  -o --output     output file name without extension
  -s --size       desired output file size in pixels
  -t --type       output QR code type. can be one of "small, medium, large"
  -v --version    shows version info

Examples

bash> qr -i "this is from parameter" -f png -s 512 -o my_qrcode_file

bash> echo "this is from stdin" | qr -t small -f png -s 512 -o my_qrcode_file_with_low_ecc

Installation

You can just pick the newest version from the "Releases" page, or build the software yourself.

Building

You will need:

  • cmake
  • make
  • a modern C++ compiler that supports c++20
# clone the repo
bash ~/> git clone https://git.mike-ochmann.de/MassiveDynamic/qr.git
# move into the repository
bash ~/> cd qr
# create the build directory and move into it
bash ~/qr> mkdir build && cd build
# run `cmake`
bash ~/qr/build> cmake ..
# make and install the software
bash ~/qr/build> make install