Skip to content

Conversation

@izimobil
Copy link
Contributor

@izimobil izimobil commented Nov 7, 2023

Fixed Pillow AttributeError:
Image.ANTIALIAS constant was removed in PIL 10.0.0.
This commit ensures that the new Image.LANCZOS is used for newer PIL versions.
See:
https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants

Fixed generated base64 images:
Previously, generated images were cropped to the right but not to the left, resulting in right centered images.
This commit makes generated images cropped from center.

Image.ANTIALIAS constant was removed in PIL 10.0.0.
This commit ensures that the new Image.LANCZOS is used for newer PIL
versions.

See:
https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html#constants
Previously, generated images where cropped to the right but not to the
left, resulting in right centered images.

This commit makes generated images cropped from center.
@SebCorbin SebCorbin merged commit ab24c42 into fle:master Jan 27, 2024
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.

2 participants