pixels tallwith purple background this image is then saved to the file purpleimage png we call image new(again to create another image objectthis time passing ( for the dimensions and nothing for the background color invisible black( )is the default color used if no color argument is specifiedso the second image has transparent backgroundwe save this transparent square in transparentimage png cropping images cropping an image means selecting rectangular region inside an image and removing everything outside the rectangle the crop(method on image objects takes box tuple and returns an image object representing the cropped image the cropping does not happen in place--that isthe original image object is left untouchedand the crop(method returns new image object remember that boxed tuple--in this casethe cropped section--includes the left column and top row of pixels but only goes up to and does not include the right column and bottom row of pixels enter the following into the interactive shellfrom pil import image catim image open('zophie png'croppedim catim crop(( )croppedim save('cropped png'this makes new image object for the cropped imagestores the object in croppedimand then calls save(on croppedim to save the cropped image in cropped png the new file cropped png will be created from the original imagelike in figure - figure - the new image will be just the cropped section of the original image manipulating images