> im = Image.open('pd0001_contype.jpeg') > im.thumbnail((400,400),'NEAREST') > im.save('pd0001_contype.thumbnail', "JPEG") oops. better make that: im = Image.open('pd0001_contype.jpeg') im.thumbnail((400,400)) im.save('pd0001_contype.thumbnail', "JPEG") </F>