The usage of Python Imaging Library Library Pillow Image.transpose ()
This article mainly explains "the usage of Python Imaging Library library Pillow Image.transpose ()". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn the usage of Python Imaging Library library Pillow Image.transpose ().
Code:
From PIL import Imageim = Image.open ("bryant.jpg") # Flip the image from left to rightim_flipped = im.transpose (method=Image.FLIP_LEFT_RIGHT) im.show () im_flipped.show ()
Show the running results:
At this point, I believe you have a deeper understanding of the use of "Python Imaging Library library Pillow Image.transpose ()". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!