How can you resize an image in Python without using any image modules. Our teacher said that we can ONLY use the MEDIA module - no other modules allowed!
So, how would you resize an image in this case? Here is the task that our teacher gave us:
Create a function that takes in a Picture and an integer value that is greater than zero. The function returns a new vertically stretched picture. The integer value determines how many times taller the expanded picture is than the original. A value of 2 returns a picture that is twice as tall, a value of 3 returns a picture that is three times as tall, and so on. Make sure that the returned picture is a stretched version of the original.