Skip to content

Conversation

@gksriharsha
Copy link

Description

font.getsize() function was deprecated from v9 onwards. Since Pillow>=10, this function does not exist. Ubuntu 24.04 LTS supports python 3.12 which forces Pillow version upgrade to >10 . Therefore changed the deprecated functions to use the correct Pillow functions.

  • Related issues:
    • Encountered while working on my project

Changes in this PR

  • Refactored getsize() to use getmask() method

How has this been tested?

I have tested the new implementation for my project and it is working. I did not see any test cases that I update. Let me know if any other test cases need to be updated.

Updating pillow function usage as old functions are deprecated
Updating Pillow version number
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

Successfully merging this pull request may close these issues.

1 participant