Captcha : instructions are now thin, text is bold

This commit is contained in:
Adrien Bourmault 2021-01-14 18:51:39 +01:00 committed by root
parent 1b9052bdc4
commit 6c7683e66b

View File

@ -115,9 +115,9 @@ TEXT=$(echo "$(${TRANSFORMATIONS[$RAND_INDEX]})" | cut -d "|" -f 2)
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 \
-font Helvetica-Narrow -weight Thin -annotate "0x0+0+0" "\n $INSTRUCTIONS" \ -font Helvetica-Narrow -annotate "0x0+0+0" "\n $INSTRUCTIONS" \
-font Helvetica-Bold -weight Light -annotate "0x0+0+18" "\n $TEXT" \ -font Helvetica-Bold -annotate "0x0+0+18" "\n $TEXT" \
-font Helvetica-Narrow -weight Thin -annotate "0x0+0+35" "\n $INSTRUCTIONS2" \ -font Helvetica-Narrow -annotate "0x0+0+35" "\n $INSTRUCTIONS2" \
-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 \) \
@ -126,9 +126,9 @@ convert -size 300x60 xc:none -pointsize 20 \
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 \
-font Helvetica-Narrow -weight Thin -annotate "0x0+0+0" "\n $INSTRUCTIONS" \ -font Helvetica-Narrow -annotate "0x0+0+0" "\n $INSTRUCTIONS" \
-font Helvetica-Bold -annotate "0x0+0+18" "\n $TEXT" \ -font Helvetica-Bold -annotate "0x0+0+18" "\n $TEXT" \
-font Helvetica-Narrow -weight Thin -annotate "0x0+0+36" "\n $INSTRUCTIONS2" \ -font Helvetica-Narrow -annotate "0x0+0+36" "\n $INSTRUCTIONS2" \
-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 \) \