Skip to content
New issue

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

'ImageDraw' object has no attribute 'textsize' #31

Open
Byproduct opened this issue Oct 17, 2023 · 1 comment
Open

'ImageDraw' object has no attribute 'textsize' #31

Byproduct opened this issue Oct 17, 2023 · 1 comment

Comments

@Byproduct
Copy link

Trying to use stylecloud gives me this error: 'ImageDraw' object has no attribute 'textsize'

I found this on stack overflow, sounds like it's probably the cause:

"The ImageDraw.textsize() method was deprecated in PIL version 9.2.0 and completely removed beginning with version 10.0.0 on 2023-07-01. The ImageDraw.textbbox() method was introduced in version 8.0.0 as a more robust solution."
https://stackoverflow.com/questions/76189891/imagedraw-object-has-no-attribute-textbbox

@tsouchlarakis
Copy link

tsouchlarakis commented Feb 10, 2024

Any fix for this? In the meantime, I'm using this as a workaround.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants