Wand flip() function in Python
In this article we will learn what is flip() function. Basically this function returns a flipped image. Flip effect flips an image upside-down or creates an vertical reflection of image. No arguments are needed in this function.
Syntax : wand.image.flip()
Parameters : No Parameters in flip() function.
Source Image:
Example 1:
Python3
from wand.image import Image
with Image(filename = "koala.jpeg" ) as img:
with img.clone() as fimg:
fimg.flip()
fimg.save(filename = 'koalaflipped.jpeg' )
|
Output:
Example 2:
Source Image:
Python3
from wand.image import Image
with Image(filename = "man.jpeg" ) as img:
with img.clone() as fimg:
fimg.flip()
fimg.save(filename = 'manflipped.jpeg' )
|
Output:
Last Updated :
16 Oct, 2021
Like Article
Save Article
Share your thoughts in the comments
Please Login to comment...