From c12119b3e2ef8c732ddeb963b963134beef4ed4f Mon Sep 17 00:00:00 2001 From: Vladimir Yakovlev Date: Sat, 11 Nov 2017 14:25:37 +0300 Subject: [PATCH] Fix invisible text Text can become invisible during image.paste if color=(0,0,0) --- captcha/image.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/captcha/image.py b/captcha/image.py index ec25dda..e122621 100644 --- a/captcha/image.py +++ b/captcha/image.py @@ -222,7 +222,7 @@ class ImageCaptcha(_Captcha): :param chars: text to be generated. """ background = random_color(238, 255) - color = random_color(0, 200, random.randint(220, 255)) + color = random_color(10, 200, random.randint(220, 255)) im = self.create_captcha_image(chars, color, background) self.create_noise_dots(im, color) self.create_noise_curve(im, color)