Skip to content

Bump Pillow to 10.0.*#10411

Merged
AlexWaygood merged 1 commit into
python:mainfrom
srittau:pillow-10.0
Jul 6, 2023
Merged

Bump Pillow to 10.0.*#10411
AlexWaygood merged 1 commit into
python:mainfrom
srittau:pillow-10.0

Conversation

@srittau
Copy link
Copy Markdown
Collaborator

@srittau srittau commented Jul 5, 2023

Depends on #10409.

Closes: #10394

@github-actions

This comment has been minimized.

@srittau
Copy link
Copy Markdown
Collaborator Author

srittau commented Jul 5, 2023

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

Copy link
Copy Markdown
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
Copy Markdown
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
@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
Copy Markdown
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