Add overloads for exif_transpose by cdce8p · Pull Request #8657 · python-pillow/Pillow

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Merged

hugovk merged 2 commits intopython-pillow:mainfrom

cdce8p:overload-exif_transpose

Jan 3, 2025

Merged

Add overloads for exif_transpose#8657

hugovk merged 2 commits intopython-pillow:mainfrom

cdce8p:overload-exif_transpose

Conversation

@cdce8p

Copy link Copy Markdown

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

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

@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

Reviewers

@radarhere radarhere radarhere approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@cdce8p @radarhere @hugovk