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

Fix Deprecations related to font.getsize in Pillow #485

Merged
merged 1 commit into from
Feb 23, 2024

Conversation

newtonick
Copy link
Collaborator

@newtonick newtonick commented Sep 15, 2023

Description

PR #477 introduced deprecation warnings when Pillow was updated. Eventually when/if we upgrade to Pillow 10.0 font.getsize will stop working. This PR replaces font.getsize with font.getbbox. See Pillow deprecation notes here: https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html

Here is an example of the deprecation warning

DeprecationWarning: getsize is deprecated and will be removed in Pillow 10 (2023-07-01). Use getbbox or getlength instead

You can see these warnings when running the screenshot generator and using Pillow 9.4.

This pull request is categorized as a:

  • Bug fix

Checklist

  • I’ve run pytest and made sure all unit tests pass before sumbitting the PR

If you modified or added functionality/workflow, did you add new unit tests?

  • N/A

I have tested this PR on the following platforms/os:

@newtonick newtonick merged commit 69cb6ac into SeedSigner:dev Feb 23, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Merged Not Yet Released
Development

Successfully merging this pull request may close these issues.

1 participant