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

Bump Pillow to 10.0.* #10411

Merged
merged 1 commit into from
Jul 6, 2023
Merged

Bump Pillow to 10.0.* #10411

merged 1 commit into from
Jul 6, 2023

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Jul 5, 2023

Depends on #10409.

Closes: #10394

@github-actions

This comment has been minimized.

@srittau
Copy link
Collaborator Author

srittau commented Jul 5, 2023

Primer hit shows a genuine porting need when upgrading the project to Pillow 10.

Copy link
Member

@AlexWaygood AlexWaygood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM once the other two PRs have gone in

@srittau srittau marked this pull request as ready for review July 6, 2023 13:55
@github-actions
Copy link
Contributor

github-actions bot commented Jul 6, 2023

Diff from mypy_primer, showing the effect of this PR on open source code:

imagehash (https://github.com/JohannesBuchner/imagehash)
+ imagehash/__init__.py:42: error: Module has no attribute "ANTIALIAS"  [attr-defined]

@AlexWaygood AlexWaygood merged commit f965054 into python:main Jul 6, 2023
49 checks passed
@srittau srittau deleted the pillow-10.0 branch July 6, 2023 14:06
Comment on lines -46 to +42
MAX_IMAGE_PIXELS: int | None
USE_CFFI_ACCESS: Incomplete
MAX_IMAGE_PIXELS: Final[int]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this is correct. According to https://pillow.readthedocs.io/en/stable/reference/Image.html#PIL.Image.open

This threshold can be changed by setting MAX_IMAGE_PIXELS. It can be disabled by setting Image.MAX_IMAGE_PIXELS = None.

I can't see any mention of this in https://pillow.readthedocs.io/en/stable/releasenotes/10.0.0.html either.

(Noticed in matrix-org/synapse#15898)

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.

3 participants