python pil image flip 1

python pil image flip

# flip an PLT image horizontally left to right

Here is what the above code is Doing:
1. Open the image
2. Convert the image to RGB
3. Resize the image to a width of 300 pixels
4. Flip the image horizontally
5. Save the image

Similar Posts