From e5eed115a47196f9001eae847b4f0f0ffcca5786 Mon Sep 17 00:00:00 2001 From: pitchum Date: Sat, 9 Jan 2021 12:30:45 +0100 Subject: [PATCH] Change naming convention of saved captchas. Better natural sorting. --- captcha/captcha.sh | 2 +- captcha/experimental.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/captcha/captcha.sh b/captcha/captcha.sh index 5406eb6..aad5223 100755 --- a/captcha/captcha.sh +++ b/captcha/captcha.sh @@ -132,7 +132,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:"/var/lib/ejabberd/chapril_captchas/${INPUT}_$(date "+%Y-%m-%d-%H%M%S").png" + -flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/lib/ejabberd/chapril_captchas/$(date "+%Y-%m-%d-%H%M%S")_${INPUT}.png" convert -size 300x60 xc:none -pointsize 20 \ \( -clone 0 -fill black \ diff --git a/captcha/experimental.sh b/captcha/experimental.sh index 9ae6d90..07e2889 100755 --- a/captcha/experimental.sh +++ b/captcha/experimental.sh @@ -132,7 +132,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:"/var/lib/ejabberd/chapril_captchas/EXPERIMENTAL${INPUT}_$(date "+%Y-%m-%d-%H%M%S").png" + -flatten -crop 300x60 +repage -quality 500 -depth 11 png:"/var/lib/ejabberd/chapril_captchas/EXPERIMENTAL_$(date "+%Y-%m-%d-%H%M%S")_{INPUT}.png" convert -size 300x60 xc:none -pointsize 20 \ \( -clone 0 -fill black \