We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For example, I want to generate a image(256*256) like this, how could I achieve that?
The text was updated successfully, but these errors were encountered:
Can you explain it little more ?
Sorry, something went wrong.
@tony8888lrz Maybe... If you adjust the width/height, you can do it at the desired value You can also look at the code here for more information.
width = 256 height = 256 font_sizes: tuple = (50, 58, 64) image = ImageCaptcha(width, height, font_sizes=font_sizes) captcha_text = '12g3r28ty324h32' id = image.generate(captcha_text) print("data:image/png;base64," + base64.b64encode(io.BytesIO(id.read()).getvalue()).decode( "utf-8"))
No branches or pull requests
For example, I want to generate a image(256*256) like this, how could I achieve that?
The text was updated successfully, but these errors were encountered: