Captcha Image (SETUP)
© 2007 Joonas Viljanen
http://www.jv2design.com
Read more / Download:
http://www.jv2design.com/Blog/2007/php-captcha
Text color :
Use blur :
True
False
Background color :
Use gaussian blur :
True
False
Border color :
Create noise :
True
False
Font size :
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50
52
54
56
58
60
Noise color :
Random length :
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Max dot size :
1
2
3
4
5
6
7
8
9
10
Padding :
0
2
4
6
8
10
12
14
16
18
20
Noise dot variant :
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Angle :
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Noise line variant :
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Truecolor :
True
False
Random noise :
True
False
Transparent :
True
False
Random noise variant :
0
5
10
15
20
25
30
35
40
45
50
55
60
65
70
75
80
Create border :
True
False
Random chars :
On top of these setting you can affect the look and feel by using your own fonts.
Any TTF font included in the specified directory will be randonly used.
Your current setup:
(copy paste to your own file)
////////////////////////////////////////////////////////// // // Put all fonts in "fonts" dir or define your own dir below // they should be TTF fonts - random will be used // // text color $text_color = "#000000"; // color of text in image // background color $background_color = "#FFFFFF"; // color of background for image // border color $border_color = "#000000"; // color of border for image // use all fonts from: $font_directory = "fonts"; // directory where 1 or more TTF fonts are located // size of characters $font_size = 30; // size of font // length of string $random_length = 6; // amount of characters to print // padding $padding = 10; // padding for image (or margin for text) // random max angle $angle = 20; // random + or - angle for text 0 for straight $truecolor = true; // create image in truecolor $transparent = false; // make bg color transparent (use truecolor = false) $create_border = true; // create border for image $use_blur = false; // use blur $use_gaussian_blur = false; // use gaussian blur $create_noise = true; // create background noise in the image $noise_color = "#777777"; // base hex value for noise $max_dot_size = 3; // max random size of ellipses $noise_dot_variant = 0.2; // multiplier for amount of noise up to 1.0 (0 for none) $noise_line_variant = 0.1; // multiplier for amount of noise up to 1.0 (0 for none) $random_noise = true; // use random colors for noise $random_noise_variant = 40; // + or - for each RGB value when converted from base hex // alpha numeric characters to use in generation $random_chars = "ACEFHKMPTUWXYZ"; //////////////////////////////////////////////////////////