Skip to content

Add overloads for exif_transpose#8657

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