int(height for the new height vso the image object returned from resize(will be half the length and width of the original imageor onequarter of the original image size overall the resize(method accepts only integers in its tuple argumentwhich is why you needed to wrap both divisions by in an int(call this resizing keeps the same proportions for the width and height but the new width and height passed to resize(do not have to be proportional to the original image the svelteim variable contains an image object that has the original width but height that is pixels taller wgiving zophie more slender look note that the resize(method does not edit the image object in place but instead returns new image object rotating and flipping images images can be rotated with the rotate(methodwhich returns new image object of the rotated image and leaves the original image object unchanged the argument to rotate(is single integer or float representing the number of degrees to rotate the image counterclockwise enter the following into the interactive shellfrom pil import image catim image open('zophie png'catim rotate( save('rotated png'catim rotate( save('rotated png'catim rotate( save('rotated png'note how you can chain method calls by calling save(directly on the image object returned from rotate(the first rotate(and save(call makes new image object representing the image rotated counterclockwise by degrees and saves the rotated image to rotated png the second and third calls do the samebut with degrees and degrees the results look like figure - figure - the original image (leftand the image rotated counterclockwise by and degrees notice that the width and height of the image change when the image is rotated or degrees if you rotate an image by some other amountthe original dimensions of the image are maintained on windowsa manipulating images