Skip to content

Update image_processing.py #1

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

Merged
merged 1 commit into from
Aug 6, 2023
Merged

Conversation

NeoMod
Copy link
Owner

@NeoMod NeoMod commented Aug 6, 2023

The latest version of HomeAssistant ( Home Assistant 2023.8.1 - Supervisor 2023.07.1 - Operating System 10.4) ships with a new and updated version of Pillow which has deprecated the "ANTIALIAS" function.
Without changing the code, the image processing script fails to acquire a snapshot from a source and process it.
The change has been tested and verified to be working correctly.

Fix for ANTIALIAS function being removed in Pillow 10.0.0 (after being deprecated through many previous versions). The same function is now called through PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.

Fix for ANTIALIAS function beeing removed in Pillow 10.0.0 (after being deprecated through many previous versions). The same function is now called trough PIL.Image.LANCZOS or PIL.Image.Resampling.LANCZOS.
@NeoMod NeoMod merged commit 97e0cda into master Aug 6, 2023
@NeoMod NeoMod deleted the NeoMod-patch-antialias-pillow branch August 6, 2023 07:33
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