00001 00002 from PIL import Image 00003 00004 for dir in range(0,360): 00005 im = Image.open("pr2_small.png") 00006 im2 = im.rotate(dir, Image.BILINEAR, expand=0) 00007 im2.save("pr2_%d.png" % dir, "png") 00008