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

Deprecation Warning from Pillow #46

Open
michaeltraxler opened this issue Aug 6, 2023 · 1 comment
Open

Deprecation Warning from Pillow #46

michaeltraxler opened this issue Aug 6, 2023 · 1 comment

Comments

@michaeltraxler
Copy link

The used library Pillow seems to change and it might be necessary to react?

brother_ql_web.py:120: DeprecationWarning: multiline_textsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use multiline_textbbox instead.
textsize = draw.multiline_textsize(text, font=im_font)

@FriedrichFroebel
Copy link

As Pillow 10 has been published, this might actually be a hard error in some systems: https://pillow.readthedocs.io/en/stable/deprecations.html#font-size-and-offset-methods

When doing some changes on my personal fork with some custom features, I fixed this as well (this the solution the Pillow developers recommend as well): FriedrichFroebel@17dbdf1#diff-de421af0299c557fa29364d4cc862f1da261c17cf0a962aae9036772208257fdL119-R123 Due to this repository appearing unmaintained from Philipp's side, I currently do not have any plans to create a corresponding PR.

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