Hi all I need to open images from a folder one by one do some processing on images and save them back to other folder. I am doing this using following sample code.
You can use glob to read the images one by one
import glob from PIL import Image images=glob.glob("*.jpg") for image in images: img = Image.open(image) img1 = img.resize(50,50) img1.save("newfolder\\"+image)