24
2
Fork 0

Captcha : corrected a typo

This commit is contained in:
Adrien Bourmault 2021-01-08 22:10:35 +01:00 committed by root
parent caea62a006
commit bb6eef4cfa
2 changed files with 2 additions and 6 deletions

View File

@ -17,8 +17,6 @@ INPUT=$1
TRANSFORMATIONS=(INTRUS SOMME)
FILENAME="/var/tmp/captcha/$(date "+%Y-%m-%d-%H%M").png"
if test -n ${BASH_VERSION:-''} ; then
get_random ()
{
@ -133,7 +131,7 @@ convert -size 300x60 xc:none -pointsize 20 \
-roll +$ROLL_X+0 \
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
-roll -$ROLL_X+0 \) \
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:$FILENAME
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/tmp/captcha/$(date "+%Y-%m-%d-%H%M").png"
convert -size 300x60 xc:none -pointsize 20 \
\( -clone 0 -fill black \

View File

@ -17,8 +17,6 @@ INPUT=$1
TRANSFORMATIONS=(INTRUS SOMME)
FILENAME="/var/tmp/captcha/$(date "+%Y-%m-%d-%H%M").png"
if test -n ${BASH_VERSION:-''} ; then
get_random ()
{
@ -133,7 +131,7 @@ convert -size 300x60 xc:none -pointsize 20 \
-roll +$ROLL_X+0 \
-wave "$WAVE1_AMPLITUDE"x"$WAVE1_LENGTH" \
-roll -$ROLL_X+0 \) \
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:$FILENAME
-flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/tmp/captcha/$(date "+%Y-%m-%d-%H%M").png"
convert -size 300x60 xc:none -pointsize 20 \
\( -clone 0 -fill black \