imagegram.py: 38 points
Next, you will implement the zoom function. This function results in an image of the same size as the original, but consists of the center of the image blown up by a factor of two. So if the image has width
w and height
h, zooming should expand the middle (
h//2) region to fill the whole picture. Note that this means that every pixel in the section of the original image that you’re zooming will map to four pixels in the new image.
Add Zoom to your menu and test it out!