Image open path file_name thumbnail 200 100 save path pre_ file_name

1
2
3
i = Image.open(path+file_name)
i.thumbnail((200, 100))
i.save(path+'pre_'+file_name)