Purchase
Click the "Buy Now" button below to purchase a server license for CFX_Captcha.

You must purchase one license for each ColdFusion instance this tag will be registered with. You can purchase multiple licenses by specifying the quantity during checkout.

Product Price License  
CFX_Captcha USD $10.00 Per Server Instance


 Description
Version 1.2 - Released 06.22.2005

Creates what is called a CAPTCHA (http://www.captcha.net) i.e. It creates those wavy images that are difficult for computers (read: spammers) to read, but should be fairly easy for humans to read.

I, in no way, warrant the effectiveness of this particular algorithm, though it should be more than enough protection for anything but the most high profile sites.
 Installation
New! Installation Guide
 Usage
<cfx_captcha
      height="70"
      width="300"
      background_image="#expandPath('.')#\sample_bg.jpg"
      text="#random_word#"
      outfile="#expandPath('.')#\sample.jpg"
      font="Arial"
      font_color="white"
      fontsize="30"
      distortion_method="1"
      font_opacity="60"
      quality="70"
      bgcolor1="blue"
      bgcolor2="##008000">


 Attributes
Attribute Req'd Description
Text Yes The text to be used in the captcha
Height No The resulting image's height
Width No The resulting image's width
Font No The font (defaults to Arial)
FontSize No The font size in points (defaults to 50 or best fit)
OutFile Yes The filename and path of the resulting image
Font_Color No The HTML color value of the font (defaults to red)
Font_Opacity No The percentage (0-100) of font opacity
Rotate No Toggle the use of text displacement/rotation (defaults to Yes)
Background_Image No The image to use for the background. Defaults to random gradient (using bgcolor1 and bgcolor2)
BGColor1 No First color of random gradient
BGColor2 No Second color of random gradient
Distortion_Method No A number from 1-4(defaults to 1, see distortion methods below)
Quality No Resulting JPEG quality (10-100)
XPos No The X coordinate of the text (defaults to centered)
YPos No The Y coordinate of the text (defaults to centered)
Noise_Percent No Amount of edge disrupting noise to add
Noise_Radius No The radius of disruption in pixels


 Notes
############################################
Distortion Methods
############################################
You can experiment with these values to find the one that works best for your particular application. I'd say the most random is number 2. But, again, it depends on your app.

1 - Create text, overlay on background then distort the whole thing
2 - Create text, distort it. Create bg, distort it. Overlay text onto bg.
3 - Create text, distort it. Create bg. Overlay text onto bg.
4 - No Distortion

See the example.cfm file included for one way of using this tag.

It is usually best to change as many aspects of the image as possible.
That is, try changing the font size and font for each iteration.

Product Price License  
CFX_Captcha USD $10.00 Per Server Instance