Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.

Update image_processing.py#1

Merged
NeoMod merged 1 commit intomasterfrom
NeoMod-patch-antialias-pillow
Aug 6, 2023
Merged

Update image_processing.py#1
NeoMod merged 1 commit intomasterfrom
NeoMod-patch-antialias-pillow

Conversation

@NeoMod
Copy link
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant