qrg

Crates.ioqrg
lib.rsqrg
version0.1.1
sourcesrc
created_at2023-02-08 18:00:47.209776
updated_at2023-03-03 19:17:49.331183
descriptionGenerates QRCodes with a logo overlay.
homepage
repositoryhttps://github.com/AntoniosBarotsis/qr-rs
max_upload_size
id780048
size61,282
Tony (AntoniosBarotsis)

documentation

README

QRG CLI

dependency status Crates.io

QR Generate!

For more information on the project, take a look at the README and this website.

Installation

Note Make sure you have Cargo installed

Currently, as the crate is not published, you can only install it from source with

# From source
# cargo install --path cli

cargo install qrg

Usage

You can get the list of available commands as follows:

$ qrg -h
Generates QRCodes with a logo overlay.

Usage: qrg.exe [OPTIONS] <CONTENT>

Arguments:
  <CONTENT>  The text the qr code should contain

Options:
  -d, --destination <DESTINATION>  The filename the QR Code should be saved in [default: out.png]
  -s, --size <SIZE>                The size of the QR Code [default: 600]
  -c, --bg-color <BG_COLOR>        The background color of the QR Code (in hex) [default: FFFFFF]
  -l, --logo <LOGO>                The name of the logo to use in the overlay [default: google]
  -h, --help                       Print help
  -V, --version                    Print version

I will try to keep this outdated but you should run it for yourself just in case some command detail has changed.

Example Usage

Create a QR Code pointing to github.com and dump the image to a file called tmp.png.

qrg github.com -d tmp.png
Commit count: 201

cargo fmt