- my example code is below.
- before you excute this code, insert the dir path.
import os
from wand.image import Image
from wand.display import display
path = "____absolute_dir_path____ (ex. /home/kim/work/)"
dirList=os.listdir(path)
for fname in dirList:
print fname
with Image(filename=path+fname) as img:
print img.size