python 변환

import os
import sys
import Image

iter = 0
fileList = []
rootdir = "d:\pics"
for root, subFolders, files in os.walk(rootdir):
    for file in files:
        print os.path.join(root,file)
        im = Image.open(os.path.join(root,file))
        out = im.resize((480, 272))
        out_name = "d:/" + "test" + str(iter) + ".jpg"
        out.save(out_name)
        iter = iter +1
#print fileList

by 루오니 | 2009/01/30 15:42 | 트랙백 | 덧글(0)

트랙백 주소 : http://katalog.egloos.com/tb/4052841
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글

◀ 이전 페이지          다음 페이지 ▶