I need to check the dimensions of images in a directory. Currently it has ~700 images. I just need to check the sizes, and if the size does not match a given dimension, it w
One common way is to use PIL, the python imaging library to get the dimensions:
from PIL import Image
import os.path
filename = os.path.join('path', 'to', 'image', 'file')
img = Image.open(filename)
print img.size
Then you need to loop over the files in your directory, check the dimensions against your required dimensions, and move those files that do not match.