]> Raphaƫl G. Git Repositories - packbundle/blobdiff - Controller/ImageController.php
Reduce captcha watermark stroke width
[packbundle] / Controller / ImageController.php
index 298ee3f66d48cddc5645dd071b4bed322aa8b900..63143611c59c5a0797623d4862d9f7d62e68246b 100644 (file)
@@ -35,13 +35,6 @@ class ImageController extends AbstractController implements ServiceSubscriberInt
         */
        protected string $cache;
 
-       /**
-        * The ContainerInterface instance
-        *
-        * @var ContainerInterface 
-        */
-       protected $container;
-
        /**
         * The ImageUtil instance
         */
@@ -158,7 +151,7 @@ class ImageController extends AbstractController implements ServiceSubscriberInt
                        $draw->setFontSize($this->image->captchaFontSize/1.5);
 
                        //Set stroke width
-                       $draw->setStrokeWidth($this->image->captchaStrokeWidth / 2);
+                       $draw->setStrokeWidth($this->image->captchaStrokeWidth / 3);
 
                        //Set rotation
                        $draw->rotate($rotate = (rand(25, 75)*(rand(0,1)?-.1:.1)));