mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2024-12-23 03:02:53 +01:00
qr.bash: add conversion to jpg
This commit is contained in:
parent
2209ff5821
commit
4ea1bcdb40
@ -10,7 +10,8 @@
|
|||||||
qrencode -l H -t utf8 "${@:2}"
|
qrencode -l H -t utf8 "${@:2}"
|
||||||
# Stores QR code as $1.png (first argument)
|
# Stores QR code as $1.png (first argument)
|
||||||
qrencode -l H -o "$1".png "${@:2}"
|
qrencode -l H -o "$1".png "${@:2}"
|
||||||
|
# My stepfather wants jpg
|
||||||
|
convert "$1".png "$1".jpg
|
||||||
# Prints details
|
# Prints details
|
||||||
echo "Name: $1.png"
|
echo "Name: $1.png"
|
||||||
echo "Content: ${@:2}"
|
echo "Content: ${@:2}"
|
||||||
|
Loading…
Reference in New Issue
Block a user