iPython how to resize images ? : I am getting confused over all the different iPython datatypes. I wrote a face recognition algorithm in Matlab. I want to redo it it iPython. I am stuck trying to resize my images. How do I do that ? Can someone link me to the things that i need to read to understand the difference in the functions between matlab in ipython ? Like matlab got imresize but python got what ?

**Is there something like import all_matlab_functions so i can ipython in matlab language ?**

I cant believe im struggling so hard. Help ! My code below shows how stupid i am with ipython currently.

    %matplotlib inline
    
    import matplotlib.image as mpimg
    import glob
    
    import matplotlib.pyplot as plt
    
    image_list = []
    for filename in glob.glob('<directory>.pgm'):
        im = mpimg.imread(filename)
        image_list.append(im)  # read all image
    
    from PIL import Image
    haha = image_list[1].resize((10 10), resample=0) # try to resize image BUT FAIL