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' #39

Open
deepfree2023 opened this issue Oct 10, 2024 · 0 comments
Open

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

deepfree2023 opened this issue Oct 10, 2024 · 0 comments

Comments

@deepfree2023
Copy link

ImageDraw.textsize() was removed in Pillow 10, and Text2Image_O reported this error:

File "K:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-QualityOfLifeSuit_Omar92\src\QualityOfLifeSuit_Omar92.py", line 1022, in create_image_new
text_width, text_height = draw.textsize(text, font=font)
^^^^^^^^^^^^^
AttributeError: 'ImageDraw' object has no attribute 'textsize'

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

1 participant