how to resize an image to match of another same image python code example
Example: resize multiple images to same size python
import PIL
import os
import os.path
from PIL import Image
f = r'c://Users/xx/Desktop/imagetest'
for file in os.listdir(f):
f_img = f+"/"+file
img = Image.open(f_img)
img = img.resize((2296,1724))
img.save(f_img)