style xbian or ticket = one jpg

This commit is contained in:
qo-op 2021-02-03 15:56:02 +01:00
parent 23447afb09
commit 36abebff79
2 changed files with 8 additions and 8 deletions

View File

@ -48,8 +48,14 @@ do
done
if [[ "${STYLE}" != "ticket" ]]
if [[ "${STYLE}" == "ticket" || "${STYLE}" == "xbian" ]]
then
cp /tmp/g1billet/${UNIQID}/*.jpg /tmp/g1billet/${UNIQID}.jpg
# CLEANING TEMP FILES
rm -Rf /tmp/g1billet/${UNIQID}
# ALLOWS ANY USER TO DELETE
chmod 777 /tmp/g1billet/${UNIQID}.jpg
else
# MONTAGE DES IMAGES DES BILLETS VERS /tmp/g1billet/${UNIQID}.pdf
montage /tmp/g1billet/${UNIQID}/*.jpg -tile 2x3 -geometry 964x459 /tmp/g1billet/${UNIQID}.pdf
# NB!! if "not autorized" then edit /etc/ImageMagick-6/policy.xml and comment
@ -58,12 +64,6 @@ then
rm -Rf /tmp/g1billet/${UNIQID}
# ALLOWS ANY USER TO DELETE
chmod 777 /tmp/g1billet/${UNIQID}.pdf
else
cp /tmp/g1billet/${UNIQID}/*.jpg /tmp/g1billet/${UNIQID}.jpg
# CLEANING TEMP FILES
rm -Rf /tmp/g1billet/${UNIQID}
# ALLOWS ANY USER TO DELETE
chmod 777 /tmp/g1billet/${UNIQID}.jpg
fi

View File

@ -76,7 +76,7 @@ then
BOTTOM="ASTROPORT KODI --- https://gchange.fr ---"
else
XZUID="G1 BILLET"
BOTTOM="Porte Monnaie Libre!! https://gchange.fr https://cesium.app"
BOTTOM="Porte Monnaie Libre!! https://gchange.fr https://cesium.app"
fi
convert -font 'Liberation-Sans' \