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

Update data_utils.py #1182

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

Update data_utils.py #1182

wants to merge 1 commit into from

Conversation

saquib34
Copy link

@saquib34 saquib34 commented May 6, 2024

"ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

(This is the exact same algorithm that ANTIALIAS referred to, you just can no longer access it through the name ANTIALIAS.) Reference https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants"

so i have updated the pillow function which help the users to run the code without error

git commit -m "ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

(This is the exact same algorithm that ANTIALIAS referred to, you just can no longer access it through the name ANTIALIAS.)
Reference https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants"
@saquib34
Copy link
Author

saquib34 commented May 6, 2024

"ANTIALIAS was removed in Pillow 10.0.0 (after being deprecated through many previous versions). Now you need to use PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

(This is the exact same algorithm that ANTIALIAS referred to, you just can no longer access it through the name ANTIALIAS.) Reference https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants"

@saquib34 saquib34 closed this May 6, 2024
@saquib34 saquib34 reopened this May 6, 2024
@Adi4real
Copy link

Adi4real commented May 6, 2024

yes, ANTIALIAS is depreciated good work earlier when i was also trying it giving me same error

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.

None yet

2 participants