Générisation
This commit is contained in:
parent
a47da6188e
commit
9d782b228e
13
captcha.sh
13
captcha.sh
|
@ -155,19 +155,6 @@ RMODULE=`seq 0 $(( ${#MODULES[@]} - 1)) | sort -R | head -n 1`
|
||||||
eval "${MODULES[RMODULE]}"
|
eval "${MODULES[RMODULE]}"
|
||||||
|
|
||||||
TEXT="$NEWINPUT"
|
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 \
|
convert -size 300x70 xc:none -pointsize 20 \
|
||||||
\( -clone 0 -fill black \
|
\( -clone 0 -fill black \
|
||||||
|
|
Loading…
Reference in New Issue