Captcha : instructions are now italic
This commit is contained in:
parent
8b042f7020
commit
52749af223
@ -113,9 +113,6 @@ RAND_INDEX=$(($R % ${#TRANSFORMATIONS[@]}))
|
|||||||
INSTRUCTIONS=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 1)
|
INSTRUCTIONS=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 1)
|
||||||
INSTRUCTIONS2=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 3)
|
INSTRUCTIONS2=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 3)
|
||||||
TEXT=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 2)
|
TEXT=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 2)
|
||||||
echo " $INSTRUCTIONS"
|
|
||||||
echo "$TEXT"
|
|
||||||
echo "$INSTRUCTIONS2"
|
|
||||||
|
|
||||||
convert -size 300x70 xc:none -pointsize 20 \
|
convert -size 300x70 xc:none -pointsize 20 \
|
||||||
\( -clone 0 -fill black \
|
\( -clone 0 -fill black \
|
||||||
|
@ -113,9 +113,6 @@ RAND_INDEX=$(($R % ${#TRANSFORMATIONS[@]}))
|
|||||||
INSTRUCTIONS=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 1)
|
INSTRUCTIONS=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 1)
|
||||||
INSTRUCTIONS2=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 3)
|
INSTRUCTIONS2=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 3)
|
||||||
TEXT=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 2)
|
TEXT=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 2)
|
||||||
echo " $INSTRUCTIONS"
|
|
||||||
echo "$TEXT"
|
|
||||||
echo "$INSTRUCTIONS2"
|
|
||||||
|
|
||||||
convert -size 300x70 xc:none -pointsize 20 \
|
convert -size 300x70 xc:none -pointsize 20 \
|
||||||
\( -clone 0 -fill black \
|
\( -clone 0 -fill black \
|
||||||
@ -127,3 +124,14 @@ convert -size 300x70 xc:none -pointsize 20 \
|
|||||||
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
||||||
-roll -$ROLL_X+0 \) \
|
-roll -$ROLL_X+0 \) \
|
||||||
-flatten -crop 300x70 +repage -quality 500 -depth 11 png:"/var/lib/ejabberd/chapril_captchas/EXPERIMENTAL_$(date "+%Y-%m-%d-%H%M%S")_${INPUT}.png"
|
-flatten -crop 300x70 +repage -quality 500 -depth 11 png:"/var/lib/ejabberd/chapril_captchas/EXPERIMENTAL_$(date "+%Y-%m-%d-%H%M%S")_${INPUT}.png"
|
||||||
|
|
||||||
|
convert -size 300x70 xc:none -pointsize 20 \
|
||||||
|
\( -clone 0 -fill black \
|
||||||
|
-stroke black -strokewidth 1 \
|
||||||
|
-annotate "${RAND_ANGLE}x25+0+0" "\n $INSTRUCTIONS" \
|
||||||
|
-annotate "${RAND_ANGLE}x0+0+20" "\n $TEXT" \
|
||||||
|
-annotate "${RAND_ANGLE}x25+0+40" "\n $INSTRUCTIONS2" \
|
||||||
|
-roll +$ROLL_X+0 \
|
||||||
|
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
||||||
|
-roll -$ROLL_X+0 \) \
|
||||||
|
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:-
|
||||||
|
Loading…
Reference in New Issue
Block a user