Open Yen-Lung-Huang opened 1 month ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
I have signed the CLA.
Background
In the latest version of Pillow (10.0.0), the
ANTIALIAS
attribute has been removed. This change caused theclassify_image.py
script to fail with anAttributeError
.Changes
ANTIALIAS
withLANCZOS
in theclassify_image.py
script to ensure compatibility with Pillow 10.0.0.Testing
classify_image.py
script with the updated code.Impact
This change ensures that the
classify_image.py
script remains compatible with the latest version of Pillow, preventing runtime errors and improving overall stability.Additional Notes
No other parts of the codebase were affected by this change. The modification is backward compatible with previous versions of Pillow.