1img = Image.open(r"C:\Users\Admin\Pictures\network.PNG")
2
3# rotating a image 90 deg counter clockwise
4rot_img = img.rotate(90, PIL.Image.NEAREST, expand = 1)
1im = Image.open('image.jpg')
2im = im.crop((left, top, right, bottom)) # coordinates of the crop