I want to know how to apply a function over a file of images and save each of them in a separate file. For one image it works successfully, but i cannot apply it to all images.

```
import glob
images = glob.glob('/Desktop/Dataset/Images/*')

for img in images:
    img = np.array(Image.open(img))
    output = 'Desktop/Dataset/Output'
    MyFn(img = img,saveFile = output)

```