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

Replace usage of deprecated Pillow methods #162

Merged
merged 9 commits into from
Aug 3, 2023
Merged

Replace usage of deprecated Pillow methods #162

merged 9 commits into from
Aug 3, 2023

Conversation

thijstriemstra
Copy link
Collaborator

@thijstriemstra thijstriemstra commented Aug 2, 2023

found following:

$ grep -Rn "textsize" examples/
./tweet_scroll.py:70:        w, h = draw.textsize(full_text, font)
./image_composition.py:29:            w, h = draw.textsize(text, font)
./demo.py:43:    size = draw.textsize('World!')
./font_awesome.py:152:                w, h = draw.textsize(text=code, font=font)
./greyscale.py:40:                size = draw.textsize("greyscale")
./welcome.py:167:            size = draw.multiline_textsize(t, font)
./welcome.py:170:                size = draw.multiline_textsize(t, font)
./hotspot/common.py:37:    x = width - margin - draw.textsize(text, font=tiny_font)[0]
./hotspot/common.py:42:    x = (width - draw.textsize(text)[0]) / 2
./game_of_life.py:64:                    w, h = draw.textsize("Game of Life")
./savepoint.py:19:    width, height = draw.textsize(message)
./colors.py:35:                size = draw.textsize(color)
./colors.py:55:            size = draw.textsize("rainbow")
./colors.py:74:            size = draw.textsize("gradient")
$ grep -Rn "ANTIALIAS" .
./video.py:45:            img = img.resize(size, PIL.Image.ANTIALIAS)

fixes #158

@thijstriemstra thijstriemstra changed the title fix deprecated Pillow Commands Replace usage of deprecated Pillow methods Aug 3, 2023
@thijstriemstra thijstriemstra marked this pull request as ready for review August 3, 2023 00:54
@rm-hull rm-hull merged commit 464812e into master Aug 3, 2023
5 checks passed
@thijstriemstra thijstriemstra deleted the pillow10 branch August 3, 2023 14:52
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.

Fix deprecated Pillow Commands
2 participants