How to convert Square image to landscape or portrait mode using PIL

105 Views Asked by At

I have an square image and I need to create Landscape and Portrait version of that image. How can I do that using PIL library

I have seen transpose method to rotate the image but how do I change the orientation.

0

There are 0 best solutions below