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

Add overloads for exif_transpose #8657

Merged
merged 2 commits into from
Jan 3, 2025

Conversation

cdce8p
Copy link
Contributor

@cdce8p cdce8p commented Jan 2, 2025

Add overloads for exif_transpose to improve the return type based on the in_place argument.

Pillow/src/PIL/ImageOps.py

Lines 682 to 686 in 66f5a3f

:param in_place: Boolean. Keyword-only argument.
If ``True``, the original image is modified in-place, and ``None`` is returned.
If ``False`` (default), a new :py:class:`~PIL.Image.Image` object is returned
with the transposition applied. If there is no transposition, a copy of the
image will be returned.

@cdce8p
Copy link
Contributor Author

cdce8p commented Jan 3, 2025

Thanks for the PR to my branch @radarhere 👍🏻 Just merged it.

@hugovk hugovk merged commit 9ae8cb8 into python-pillow:main Jan 3, 2025
50 checks passed
@cdce8p cdce8p deleted the overload-exif_transpose branch January 3, 2025 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants