diff --git a/Generator/CaptchaGenerator.php b/Generator/CaptchaGenerator.php index 25b4f71..3f192f5 100644 --- a/Generator/CaptchaGenerator.php +++ b/Generator/CaptchaGenerator.php @@ -124,10 +124,7 @@ class CaptchaGenerator $fingerprint = isset($options['fingerprint']) ? $options['fingerprint'] : null; - // set background images $this->builder->setBackgroundImages($options['background_images']); - - // set ignore all effects $this->builder->setIgnoreAllEffects($options['ignore_all_effects']); $content = $this->builder->build( diff --git a/README.md b/README.md index 67c0cfe..dfe42ac 100644 --- a/README.md +++ b/README.md @@ -143,7 +143,7 @@ number of lines depends on the size of the image). (default=null) * **background_color**: sets the background color, if you want to force it, this should be an array of r,g &b, for instance [255, 255, 255] will force the background to be white * **background_images**: Sets custom user defined images as the captcha background (1 image is selected randomly). It is recommended to turn off all the effects on the image (ignore_all_effects). The full paths to the images must be passed. * **interpolation**: enable or disable the interpolation on the captcha -* **ignore_all_effects**: Recommended to use when passing background images, will disable all image effects. +* **ignore_all_effects**: Recommended to use when setting background images, will disable all image effects. Example :