style xbian or ticket = one jpg
This commit is contained in:
parent
23447afb09
commit
36abebff79
14
G1BILLETS.sh
14
G1BILLETS.sh
|
@ -48,8 +48,14 @@ do
|
||||||
|
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ "${STYLE}" != "ticket" ]]
|
if [[ "${STYLE}" == "ticket" || "${STYLE}" == "xbian" ]]
|
||||||
then
|
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 DES IMAGES DES BILLETS VERS /tmp/g1billet/${UNIQID}.pdf
|
||||||
montage /tmp/g1billet/${UNIQID}/*.jpg -tile 2x3 -geometry 964x459 /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
|
# NB!! if "not autorized" then edit /etc/ImageMagick-6/policy.xml and comment
|
||||||
|
@ -58,12 +64,6 @@ then
|
||||||
rm -Rf /tmp/g1billet/${UNIQID}
|
rm -Rf /tmp/g1billet/${UNIQID}
|
||||||
# ALLOWS ANY USER TO DELETE
|
# ALLOWS ANY USER TO DELETE
|
||||||
chmod 777 /tmp/g1billet/${UNIQID}.pdf
|
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
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -76,7 +76,7 @@ then
|
||||||
BOTTOM="ASTROPORT KODI --- https://gchange.fr ---"
|
BOTTOM="ASTROPORT KODI --- https://gchange.fr ---"
|
||||||
else
|
else
|
||||||
XZUID="G1 BILLET"
|
XZUID="G1 BILLET"
|
||||||
BOTTOM="Porte Monnaie Libre!! https://gchange.fr https://cesium.app"
|
BOTTOM="Porte Monnaie Libre!! https://gchange.fr https://cesium.app"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
convert -font 'Liberation-Sans' \
|
convert -font 'Liberation-Sans' \
|
||||||
|
|
Loading…
Reference in New Issue