From bb6eef4cfa8c6d5ec8ec82a633a79921c7f278c0 Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Fri, 8 Jan 2021 22:10:35 +0100 Subject: [PATCH] Captcha : corrected a typo --- captcha/captcha.sh | 4 +--- captcha/experimental.sh | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/captcha/captcha.sh b/captcha/captcha.sh index c2aab5e..3efe84c 100755 --- a/captcha/captcha.sh +++ b/captcha/captcha.sh @@ -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 \ diff --git a/captcha/experimental.sh b/captcha/experimental.sh index c2aab5e..3efe84c 100755 --- a/captcha/experimental.sh +++ b/captcha/experimental.sh @@ -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 \