]> Raphaël G. Git Repositories - packbundle/commitdiff
Reduce captcha watermark stroke width
authorRaphaël Gertz <git@rapsys.eu>
Fri, 10 Nov 2023 14:44:45 +0000 (15:44 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Fri, 10 Nov 2023 14:51:42 +0000 (15:51 +0100)
Controller/ImageController.php

index dd548394de6c0d1a8fc340995a8bf248a9ad5e6b..63143611c59c5a0797623d4862d9f7d62e68246b 100644 (file)
@@ -151,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)));