Hello.
Excuse me, I'm really new to python (currently learning the library), and I found your blog by looking for a way for creating thumbnails.
Thanks a million for your snippet, just a question (as I'm so new I might have missed something), wouldnt your snippet be more efficient if it were like this? (well, only in case the folder contained any thumnails)
import glob
import Image
# get all the jpg files from the current folder
for infile in glob.glob("*.jpg"):
if infile[0:2] == "T_":
continue # Skipping a thumbnail
im = Image.open(infile)
# convert to thumbnail image
im.thumbnail((128, 128), Image.ANTIALIAS)
im.save("T_" + infile, "JPEG")