GitXplorerGitXplorer
s

qrscan

public
166 stars
7 forks
8 issues

Commits

List of commits on branch main.
Verified
b0fedfa14f92ab70eb71848bebfb0223e9c03beb

Add nixpkgs instruction

ssayanarijit committed 2 years ago
Verified
989d92d17c483e64314d2f5820723273fb944484

Audit (#18)

ssayanarijit committed 2 years ago
Verified
f5529ada1c33bb021cf423c0ac93fb7e1ba3302e

Update dependencies

ssayanarijit committed 2 years ago
Verified
4a8d94d70d41fce3db64199195787672cad8fe59

Fix Nix Flake

ssayanarijit committed 2 years ago
Verified
ee57e3bc05a65162d1bb56f0d76eb92a6a982913

Update deps (#16)

ssayanarijit committed 2 years ago
Verified
0f26262718c0dce59e8f2bc113126c9378282934

Fix lints (#14)

ssayanarijit committed 2 years ago

README

The README file for this repository.

qrscan

Scan a QR code in the terminal using the system camera or a given image.

https://user-images.githubusercontent.com/11632726/178779071-ad5ca7da-0fc3-48c1-b725-a9834db39134.mp4

Install

Packaging status

Scoop

scoop bucket add extras
scoop install qrscan

Cargo

# On Ubuntu, first install libclang-dev (apt-get install libclang-dev)
cargo install --locked --force qrscan

Nix

Nixpkgs
nix-env -f https://github.com/NixOS/nixpkgs/tarball/master -iA qrscan
Flake
nix profile install github:sayanarijit/qrscan

Pre-built binaries

Download the appropriate binary from the latest release.

Usage

Scan via the system camera with terminal preview

qrscan --preview

Scan a given image file

qrscan path/to/file

# Or read from stdin

cat /path/to/file | qrscan -

Print the QR code on the terminal

qrscan <path/to/file> --qr --no-content

Also print QR code metadata

qrscan <path/to/file> --metadata

Export the QR code as image files

qrscan <path/to/file> --qr \
  --svg path/to/out.svg \
  --png path/to/out.png \
  --jpeg path/to/out.jpeg \
  --ascii path/to/out.ascii

Some Usage Examples

Capture a screenshot of a selected area using ImageMagic and scan the QR code.

import png:- | qrscan -

Introductions & Reviews