$arc_linethrough = true
[line 317]
For added security, it is a good idea to draw arced lines over the letters to make it harder for bots to segment the letters.
Two arced lines will be drawn over the text on each side of the image.
This is currently expirimental and may be off in certain configurations.
$arc_line_colors = "#8080ff"
[line 326]
The colors or color of the arced lines.
Use HTML hex notation with preceding # sign, and separate each value with a comma.
This should be similar to your font color for single color images.
$charset = 'ABCDEFGHJKLMNPRSTUVWXYZ23456789'
[line 108]
The character set for individual characters in the image.
Letters are converted to uppercase.
The font must support the letters or there may be problematic substitutions.
$code_length = 7
[line 99]
The length of the code to generate.
$draw_angled_lines = true
[line 299]
Set to true to draw angled lines on the image in addition to the horizontal and vertical lines.
Tags:
$draw_lines = true
[line 264]
Draw vertical and horizontal lines on the image.
Tags:
$draw_lines_over_text = false
[line 308]
Draw the lines over the text.
If fales lines will be drawn before putting the text on the image.
This can make the image hard for humans to read depending on the line thickness and distance.
$font_size = 20
[line 151]
The font size.
Depending on your version of GD, this should be specified as the pixel size (GD1) or point size (GD2)
$gd_font_file = 'gdfonts/bubblebath.gdf'
[line 125]
The GD font to use.
Internal gd fonts can be loaded by their number.
Alternatively, a file path can be given and the font will be loaded from file.
$gd_font_size = 20
[line 134]
The approximate size of the font in pixels.
This does not control the size of the font because that is determined by the GD font itself.
This is used to aid the calculations of positioning used by this class.
$image_bg_color = "#E0E0E0"
[line 206]
The background color for the image.
This should be specified in HTML hex format.
Make sure to include the preceding # sign!
$image_height = 40
[line 84]
The desired width of the CAPTCHA image.
$image_type = SI_IMAGE_PNG
[line 92]
The image format for output.
Valid options: SI_IMAGE_PNG, SI_IMAGE_JPG, SI_IMAGE_GIF
$image_width = 250
[line 77]
The desired width of the CAPTCHA image.
$line_color = "#80BFFF"
[line 273]
The color of the lines drawn on the image.
Use HTML hex format with preceding # sign.
Tags:
$line_distance = 15
[line 281]
How far apart to space the lines from eachother in pixels.
Tags:
$line_thickness = 1
[line 291]
How thick to draw the lines in pixels.
1-3 is ideal depending on distance
Tags:
$multi_text_color = "#000000,#0000FF,#FF0000,#33FF00,#CC00FF,#FF00B3"
[line 234]
String of HTML hex colors to use.
Separate each possible color with commas.
Be sure to precede each value with the # sign.
$text_angle_maximum = 20
[line 169]
The minimum angle in degrees, with 0 degrees being left-to-right reading text.
Higher values represent a counter-clockwise rotation.
For example, a value of 90 would result in bottom-to-top reading text.
$text_angle_minimum = -20
[line 160]
The minimum angle in degrees, with 0 degrees being left-to-right reading text.
Higher values represent a counter-clockwise rotation.
For example, a value of 90 would result in bottom-to-top reading text.
$text_color = "#8080ff"
[line 217]
The text color to use for drawing characters.
This value is ignored if $use_multi_text is set to true.
Make sure this contrasts well with the background color.
Specify the color in HTML hex format with preceding # sign
Tags:
$text_maximum_distance = 33
[line 197]
Letters can be spaced apart at random distances.
This is the maximum distance between two letters.
This should be at least as wide as a font character.
Small values can cause letters to be drawn over eachother.
$text_minimum_distance = 30
[line 187]
Letters can be spaced apart at random distances.
This is the minimum distance between two letters.
This should be at least as wide as a font character.
Small values can cause letters to be drawn over eachother.
$text_transparency_percentage = 15
[line 251]
The percentage of transparency, 0 to 100.
A value of 0 is completely opaque, 100 is completely transparent (invisble)
Tags:
$text_x_start = 8
[line 177]
The X-Position on the image where letter drawing will begin.
This value is in pixels from the left side of the image.
$ttf_file = "./elephant.ttf"
[line 143]
The path to the TTF font file to load.
$use_gd_font = false
[line 116]
Whether to use a GD font instead of a TTF font.
TTF offers more support and options, but use this if your PHP doesn't support TTF.
$use_multi_text = false
[line 225]
Set to true to use multiple colors for each character.
Tags:
$use_transparent_text = true
[line 242]
Set to true to make the characters appear transparent.
Tags: