qr.bash: double the pixel size

This commit is contained in:
Aminda Suomalainen 2023-01-31 10:58:29 +02:00
parent 4ea1bcdb40
commit 8162696f55
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 2 additions and 1 deletions

View File

@ -3,13 +3,14 @@
# Arguments: Name & content
# -l H uses the highest error correction in case 30 % gets damaged (or artistried upon)
# -s 6 doubles the dot/pixel size
# Outputs QR code to terminal
# ${@:2} takes all arguments except not the first one
qrencode -l H -t utf8 "${@:2}"
# Stores QR code as $1.png (first argument)
qrencode -l H -o "$1".png "${@:2}"
qrencode -s 6 -l H -o "$1".png "${@:2}"
# My stepfather wants jpg
convert "$1".png "$1".jpg
# Prints details