From 9d782b228ecd9140571bec5067ba38f545727f2c Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Wed, 4 May 2022 15:25:45 +0200 Subject: [PATCH] =?UTF-8?q?G=C3=A9n=C3=A9risation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- captcha.sh | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/captcha.sh b/captcha.sh index 8800e74..96ada9a 100755 --- a/captcha.sh +++ b/captcha.sh @@ -155,19 +155,6 @@ RMODULE=`seq 0 $(( ${#MODULES[@]} - 1)) | sort -R | head -n 1` eval "${MODULES[RMODULE]}" TEXT="$NEWINPUT" -CHAPRILURI=/var/lib/ejabberd/chapril_captchas/$(date "+%Y-%m-%d-%H%M%S")_${NAME}_${INPUT}.png - -convert -size 300x70 xc:none -pointsize 20 \ - \( -clone 0 -fill black \ - -stroke black -strokewidth 1 \ - -font Helvetica-Narrow -annotate "0x0+0+0" "\n $INSTRUCTIONS1" \ - -font Helvetica-Bold -annotate "0x0+0+22" "\n $TEXT" \ - -font Helvetica-Narrow -annotate "0x0+0+44" "\n $INSTRUCTIONS2" \ - -roll +$ROLL_X+0 \ - -wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \ - -roll -$ROLL_X+0 \) \ - -flatten -crop 300x70 +repage -quality 500 \ - -depth 11 png:"$CHAPRILURI" convert -size 300x70 xc:none -pointsize 20 \ \( -clone 0 -fill black \