Captcha : corrected a typo
This commit is contained in:
parent
bb6eef4cfa
commit
1ab3fbb093
|
@ -99,7 +99,7 @@ SOMME()
|
||||||
A=$(($INPUT - $RA))
|
A=$(($INPUT - $RA))
|
||||||
B=$RA
|
B=$RA
|
||||||
else
|
else
|
||||||
B=$(($INPUT + $RA))
|
B=$(($INPUT - $RA))
|
||||||
A=$RA
|
A=$RA
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -127,16 +127,16 @@ RAND_INDEX=$(($R % ${#TRANSFORMATIONS[@]}))
|
||||||
convert -size 300x60 xc:none -pointsize 20 \
|
convert -size 300x60 xc:none -pointsize 20 \
|
||||||
\( -clone 0 -fill black \
|
\( -clone 0 -fill black \
|
||||||
-stroke black -strokewidth 1 \
|
-stroke black -strokewidth 1 \
|
||||||
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \
|
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \
|
||||||
-roll +$ROLL_X+0 \
|
-roll +$ROLL_X+0 \
|
||||||
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
||||||
-roll -$ROLL_X+0 \) \
|
-roll -$ROLL_X+0 \) \
|
||||||
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/tmp/captcha/$(date "+%Y-%m-%d-%H%M").png"
|
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/tmp/captcha/${INPUT}_$(date "+%Y-%m-%d-%H%M%S").png"
|
||||||
|
|
||||||
convert -size 300x60 xc:none -pointsize 20 \
|
convert -size 300x60 xc:none -pointsize 20 \
|
||||||
\( -clone 0 -fill black \
|
\( -clone 0 -fill black \
|
||||||
-stroke black -strokewidth 1 \
|
-stroke black -strokewidth 1 \
|
||||||
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \
|
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \
|
||||||
-roll +$ROLL_X+0 \
|
-roll +$ROLL_X+0 \
|
||||||
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
||||||
-roll -$ROLL_X+0 \) \
|
-roll -$ROLL_X+0 \) \
|
||||||
|
|
|
@ -99,7 +99,7 @@ SOMME()
|
||||||
A=$(($INPUT - $RA))
|
A=$(($INPUT - $RA))
|
||||||
B=$RA
|
B=$RA
|
||||||
else
|
else
|
||||||
B=$(($INPUT + $RA))
|
B=$(($INPUT - $RA))
|
||||||
A=$RA
|
A=$RA
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -127,16 +127,16 @@ RAND_INDEX=$(($R % ${#TRANSFORMATIONS[@]}))
|
||||||
convert -size 300x60 xc:none -pointsize 20 \
|
convert -size 300x60 xc:none -pointsize 20 \
|
||||||
\( -clone 0 -fill black \
|
\( -clone 0 -fill black \
|
||||||
-stroke black -strokewidth 1 \
|
-stroke black -strokewidth 1 \
|
||||||
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \
|
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \
|
||||||
-roll +$ROLL_X+0 \
|
-roll +$ROLL_X+0 \
|
||||||
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
||||||
-roll -$ROLL_X+0 \) \
|
-roll -$ROLL_X+0 \) \
|
||||||
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/tmp/captcha/$(date "+%Y-%m-%d-%H%M").png"
|
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/tmp/captcha/EXPERIMENTAL${INPUT}_$(date "+%Y-%m-%d-%H%M%S").png"
|
||||||
|
|
||||||
convert -size 300x60 xc:none -pointsize 20 \
|
convert -size 300x60 xc:none -pointsize 20 \
|
||||||
\( -clone 0 -fill black \
|
\( -clone 0 -fill black \
|
||||||
-stroke black -strokewidth 1 \
|
-stroke black -strokewidth 1 \
|
||||||
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[1]})" \
|
-annotate "${RAND_ANGLE}x${RAND_ITALIC}+0+0" "\n $(${TRANSFORMATIONS[$RAND_INDEX]})" \
|
||||||
-roll +$ROLL_X+0 \
|
-roll +$ROLL_X+0 \
|
||||||
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
|
||||||
-roll -$ROLL_X+0 \) \
|
-roll -$ROLL_X+0 \) \
|
||||||
|
|
Loading…
Reference in New Issue