The following options can be set globally in gregwar_captcha configuration or locally on the CaptchaType itself. Note that some options are strictly global.
### Global-only options:
* `image_folder`: name of folder for captcha images relative to public web folder in case `as_file` is set to true (default="captcha")
* `web_path`: absolute path to public web folder (default="%kernel.project_dir%/public")
* `gc_freq`: frequency of garbage collection in fractions of 1 (default=100)
* `expiration`: maximum lifetime of captcha image files in minutes (default=60)
### Options available globally OR on CaptchaType:
* `width`: the width of the captcha image (default=120)
* `height`: the height of the captcha image (default=40)
* `disabled`: disable globally the CAPTCHAs (can be useful in dev environment), it will still appear but won't be editable and won't be checked
* `length`: the length of the captcha (number of chars, default=5)
* `quality`: jpeg quality of captchas (default=30)
* `charset`: the charset used for code generation (default=abcdefhjkmnprstuvwxyz23456789)
* `font`: the font to use (default is random among some pre-provided fonts), this should be an absolute path
* `keep_value`: the value will be the same until the form is posted, even if the page is refreshed (default=true)
* `as_file`: if set to true an image file will be created instead of embedding to please IE6/7 (default=false)
* `as_url`: if set to true, a URL will be used in the image tag and will handle captcha generation. This can be used in a multiple-server environment and support IE6/7 (default=false)
* `invalid_message`: error message displayed when an non-matching code is submitted (default="Bad code value")
* `bypass_code`: code that will always validate the captcha (default=null)
* `whitelist_key`: the session key to use for keep the session keys that can be used for captcha storage, when using `as_url` (default=captcha_whitelist_key)
* `reload`: adds a link to reload the code
* `humanity`: number of extra forms that the user can submit after a correct validation (default=0)
* `distortion`: enable or disable the distortion on the image (default=true)
* `max_front_lines`: the maximum number of lines to draw on top of the image (default=null)
* `max_behind_lines`: the maximum number of lines to draw behind the image (default=null)
* `background_color`: sets the background color as an array of r,g &b (e.g. [255, 255, 255])
* `background_images`: Sets custom user defined images as the captcha background (array of full paths)
* `interpolation`: enable or disable the interpolation on the captcha
* `ignore_all_effects`: Recommended to use when setting background images, will disable all image effects.
* `session_key`: if you want to host multiple CAPTCHA on the same page, use different session keys to ensure proper storage.