captcha - make captcha images on disk
-d debug -h help
-m num images to make, default is 20, optional -o directory to output to, required -f abs path to ttf font file, required -e extension, default is png
captcha -f /usr/share/font/luxisr.ttf -o /tmp/captchas/ -e jpg -m 10 captcha -f /usr/share/font/luxisr.ttf -o /tmp/captchas/
This will create captcha images and record in a captcha_table.txt file what the codes are.
With this command:
captcha -f /usr/share/fonts/bitstream-vera/VeraMono.ttf -o /tmp/captchas/
This is the output:
/tmp/captchas/captcha_6.png /tmp/captchas/captcha_11.png /tmp/captchas/captcha_8.jpg /tmp/captchas/captcha_16.png /tmp/captchas/captcha_5.png /tmp/captchas/captcha_18.png /tmp/captchas/captcha_5.jpg /tmp/captchas/captcha_3.png /tmp/captchas/captcha_8.png /tmp/captchas/captcha_1.png /tmp/captchas/captcha_12.png /tmp/captchas/captcha_9.png /tmp/captchas/captcha_17.png /tmp/captchas/captcha_table.txt /tmp/captchas/captcha_2.jpg /tmp/captchas/captcha_0.jpg /tmp/captchas/captcha_4.jpg /tmp/captchas/captcha_15.png /tmp/captchas/captcha_4.png /tmp/captchas/captcha_1.jpg /tmp/captchas/captcha_7.jpg /tmp/captchas/captcha_0.png /tmp/captchas/captcha_2.png /tmp/captchas/captcha_7.png /tmp/captchas/captcha_9.jpg /tmp/captchas/captcha_3.jpg /tmp/captchas/captcha_6.jpg /tmp/captchas/captcha_13.png /tmp/captchas/captcha_19.png /tmp/captchas/captcha_10.png /tmp/captchas/captcha_14.png
And captcha_table.txt holds:
0473=/tmp/captchas/captcha_19.png 5804=/tmp/captchas/captcha_18.png 5126=/tmp/captchas/captcha_17.png 7173=/tmp/captchas/captcha_16.png 8561=/tmp/captchas/captcha_15.png 1820=/tmp/captchas/captcha_14.png 7368=/tmp/captchas/captcha_13.png 9136=/tmp/captchas/captcha_12.png 6313=/tmp/captchas/captcha_11.png 1334=/tmp/captchas/captcha_10.png 0832=/tmp/captchas/captcha_9.png 7874=/tmp/captchas/captcha_8.png 9138=/tmp/captchas/captcha_7.png 3928=/tmp/captchas/captcha_6.png 4586=/tmp/captchas/captcha_5.png 8448=/tmp/captchas/captcha_4.png 6232=/tmp/captchas/captcha_3.png 8588=/tmp/captchas/captcha_2.png 9503=/tmp/captchas/captcha_1.png 7440=/tmp/captchas/captcha_0.png
GD::SecurityImage::Utils
Leo Charre
To install GD::SecurityImage::Utils, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GD::SecurityImage::Utils
CPAN shell
perl -MCPAN -e shell install GD::SecurityImage::Utils
For more information on module installation, please visit the detailed CPAN module installation guide.