From 4ea1bcdb4057e4dc0e4a9c44b07a8d873aa016f6 Mon Sep 17 00:00:00 2001 From: Aminda Suomalainen Date: Tue, 31 Jan 2023 10:49:28 +0200 Subject: [PATCH] qr.bash: add conversion to jpg --- bash/qr.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bash/qr.bash b/bash/qr.bash index 4fc1863..579e8d8 100755 --- a/bash/qr.bash +++ b/bash/qr.bash @@ -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}"