qr.bash: add conversion to jpg

This commit is contained in:
Aminda Suomalainen 2023-01-31 10:49:28 +02:00
parent 2209ff5821
commit 4ea1bcdb40
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -10,7 +10,8 @@
qrencode -l H -t utf8 "${@:2}"
# Stores QR code as $1.png (first argument)
qrencode -l H -o "$1".png "${@:2}"
# My stepfather wants jpg
convert "$1".png "$1".jpg
# Prints details
echo "Name: $1.png"
echo "Content: ${@:2}"