J-Rios / multicolorcaptcha

Python random image-captcha generator library.
GNU General Public License v3.0
73 stars 17 forks source link

[Question] How to remove the dark background? #14

Closed Qmlio closed 1 week ago

Qmlio commented 1 week ago

Greetings, How can i remove the black background from the generated images, i know there are many options out there for cropping but i want to know if its possible to remove it before i resort to other options. a

J-Rios commented 1 week ago

Hello, you mean the black upper and bottom margings?

There is a "margin" argument in the "gen_captcha_image" function that you can set to False to avoid this black margins appear in the image:

captcha = CaptchaGen.gen_captcha_image(multicolor=True, margin=False)

Regards

Qmlio commented 1 week ago

Oh.ok..thanks for the response and clarification

On Sat, Jul 6, 2024, 15:10 Jose @.***> wrote:

Hello, you mean the black upper and bottom margings?

There is a "margin" argument in the "gen_captcha_image" function that you can set to False to avoid this black margins appear in the image:

captcha = CaptchaGen.gen_captcha_image(multicolor=True, margin=False)

Regards

— Reply to this email directly, view it on GitHub https://github.com/J-Rios/multicolorcaptcha/issues/14#issuecomment-2211752368, or unsubscribe https://github.com/notifications/unsubscribe-auth/APVSHJBOYELP4EF4H25RF7LZK7NFFAVCNFSM6AAAAABKOGJFYCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJRG42TEMZWHA . You are receiving this because you authored the thread.Message ID: @.***>