I'm trying to blur the image in the pwd and then save it to a new file:
from PIL import Image
import glob, os
size = 128, 128
from PIL import ImageFilter
for infile in glob.glob("*.jpg"):
print "processing %s\n" % infile
file, ext = os.path.splitext(infile)
print " file %s, extension %s\n" % (file, ext)
im = Image.open(infile)
#im.thumbnail(size, Image.ANTIALIAS)
#im.save(file + "thumb", "JPEG")
im.filter(ImageFilter.BLUR)
im.save(file + "blurred2", "JPEG")
What's saved looks exactly like the original image, however.