#qr #encode #generator #terminal #image #computer-vision

app eqr

Encode text into svg/png/jpg/terminal-format QR codes

7 stable releases

new 1.1.4 Oct 29, 2024
1.1.2 Oct 23, 2024
1.1.1 Oct 19, 2024
1.1.0 Oct 8, 2024
1.0.1 Oct 5, 2024

#479 in Encoding

Download history 244/week @ 2024-09-30 242/week @ 2024-10-07 153/week @ 2024-10-14 200/week @ 2024-10-21

839 downloads per month

GPL-3.0-only

34KB
627 lines

Cargo build downloads

eqr 1.1.4

Encode text into svg/png/jpg/terminal-format QR codes

Install

Install standalone single-binary

wget https://github.com/pepa65/eqr/releases/download/1.1.4/qr
sudo mv qr /usr/local/bin
sudo chown root:root /usr/local/bin/qr
sudo chmod +x /usr/local/bin/qr

Install with cargo

If not installed yet, install a Rust toolchain, see https://www.rust-lang.org/tools/install

Direct from crates.io

cargo install eqr

Direct from repo

cargo install --git https://github.com/pepa65/eqr

Static build (avoiding GLIBC incompatibilities)

git clone https://github.com/pepa65/eqr
cd eqr
rustup target add x86_64-unknown-linux-musl
cargo rel  # Alias in .cargo/config.toml

The binary will be at target/x86_64-unknown-linux-musl/release/qr

Install with cargo-binstall

Even without a full Rust toolchain, rust binaries can be installed with the static binary cargo-binstall:

# Install cargo-binstall for Linux x86_64
# (Other versions are available at https://crates.io/crates/cargo-binstall)
wget github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-x86_64-unknown-linux-musl.tgz
tar xf cargo-binstall-x86_64-unknown-linux-musl.tgz
sudo chown root:root cargo-binstall
sudo mv cargo-binstall /usr/local/bin/

Only a linux-x86_64 (musl) binary available: cargo-binstall eqr

Usage

eqr 1.1.4 - Encode text into svg/png/jpg/terminal-format QR codes
USAGE:
    qr [OPTIONS] [STRING]
ARGS:
    <STRING>    String to encode

OPTIONS:
    -b, --bg <BG>
            Background RGB color (hex code) [default: fff]

    -B, --border <BORDER>
            Border size (expressed in unit blocks) [default: 1]

    -f, --fg <FG>
            Foreground RGB color (hex code) [default: 000]

    -h, --help
            Print help information

    -L, --error-correction-level <ERROR_CORRECTION_LEVEL>
            QR error correction level [default: medium] [possible values: low, medium, quartile,
            high]

    -o, --output <OUTPUT>
            Output file (supported file extensions: jpg, png, svg); omit to print QR code to console

    -s, --scale <SCALE>
            Scale factor (1..255) [default: 16]

    -V, --version
            Print version information

Changelog

Complete CHANGELOG.

License

GPLv3

Dependencies

~11–19MB
~240K SLoC