1
0
Fork 0
This commit is contained in:
fred 2022-02-19 17:42:15 +01:00
parent 98f7de3381
commit e75a74b794
1 changed files with 31 additions and 31 deletions

View File

@ -22,7 +22,7 @@ STYLE="$6"
if [[ "$NUMERO" == "" || "$SECRET" == "" || "$MONTANT" == "" || "$NOTERIB" == "" || "$UNIQID" == "" ]] if [[ "$NUMERO" == "" || "$SECRET" == "" || "$MONTANT" == "" || "$NOTERIB" == "" || "$UNIQID" == "" ]]
then then
exit 1 exit 1
fi fi
mkdir -p /tmp/g1billet/$UNIQID mkdir -p /tmp/g1billet/$UNIQID
@ -39,30 +39,30 @@ composite -compose Over -gravity SouthEast -geometry +35+50 "/tmp/g1billet/${UNI
# Change June logo color # Change June logo color
case "$MONTANT" in case "$MONTANT" in
1) 1)
convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill grey -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png" convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill grey -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
2) 2)
convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill green -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png" convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill green -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
5) 5)
convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill orange -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png" convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill orange -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
10) 10)
convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill blue -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png" convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill blue -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
20) 20)
convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill purple -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png" convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill purple -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
50) 50)
convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill red -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png" convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill red -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
100) 100)
convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill black -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png" convert "${MY_PATH}/images/g1${STYLE}.png" -fuzz 20% -fill black -opaque '#e5912b' "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
*) *)
cp "${MY_PATH}/images/g1${STYLE}.png" "/tmp/g1billet/${UNIQID}/g1.png" cp "${MY_PATH}/images/g1${STYLE}.png" "/tmp/g1billet/${UNIQID}/g1.png"
;; ;;
esac esac
# Add June LOGO to Billet # Add June LOGO to Billet
@ -71,12 +71,12 @@ composite -compose Over -gravity NorthEast -geometry +50+25 -dissolve 90% "/tmp
# xbian style (ASTROPORT/KODI) + JEU # xbian style (ASTROPORT/KODI) + JEU
if [[ "${STYLE}" == "xbian" || "${STYLE}" == "jeu" ]] if [[ "${STYLE}" == "xbian" || "${STYLE}" == "jeu" ]]
then then
# CREATE PSEUDO for Gchange.fr # CREATE PSEUDO for Gchange.fr
XZUID=$(${MY_PATH}/diceware.sh 1 | xargs)${RANDOM:0:2}$(${MY_PATH}/diceware.sh 1 | xargs) XZUID=$(${MY_PATH}/diceware.sh 1 | xargs)${RANDOM:0:2}$(${MY_PATH}/diceware.sh 1 | xargs)
BOTTOM="BON AU PORTEUR [MADEINZION / ASTROPORT]" BOTTOM="VISA MADEINZION -- ASTROPORT ONE"
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