Learn Before
Concept
Transposing Images (Pillow)
Image objects have a transpose() function to flip or rotate an image.
image.transpose(method)
The method parameter can be any of the following:
- PIL.Image.FLIP_LEFT_RIGHT
- PIL.Image.FLIP_TOP_BOTTOM
- PIL.Image.ROTATE_90
- PIL.Image.ROTATE_180
- PIL.Image.ROTATE_270
0
1
Updated 2021-07-11
Tags
Python Programming Language
Data Science