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

getsize() depricated in Pillow>=10.0.1 #208

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vera-bernhard
Copy link

getsize() is deprecated and replaced with getbbox() in Pillow>=10.0.1

I replaced it in visualization.py such that it works with both newer and older Pillow versions.

There are other instances that also need to be adapted, but I have refrained from adapting them everywhere due to a lack of testing possibilities.

getsize() is deprecated and replaced with getbbox
@Pancham1603
Copy link

getbbox() doesn't return the width and height, it gives the coordinates. Will have to use left right top bottom values to get the width and height.

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.

2 participants