Daily Archive for May 10th, 2007

Leah Dizon 2007 Photos

Leah Dizon (リア・ディゾン Ria Dizon, born as Leah Donna Dizon on September 24, 1986) is a model, singer and Japanese television tarento, born in Las Vegas, Nevada, US. She has two older brothers, an older sister, and two younger brothers. Her astrological sign is Libra, and her Chinese zodiac sign is Tiger. Blood type is O. Her ethnicities include Chinese, Filipino and French.

Stats:

  • Height: 5’6″
  • Weight: 110 lbs
  • Measurements: 34B-25-36
  • Hair: Brown
  • Eyes: Hazel
  • Dress: 4
  • Shoe: 6-7
leah_dizon_613645webcan.jpgleah_dizon_613646webcan.jpgleah_dizon_613647webcan.jpgleah_dizon_613648webcan.jpgleah_dizon_613649webcan.jpgleah_dizon_613635webcan.jpgleah_dizon_613636webcan.jpgleah_dizon_613637webcan.jpg
leah_dizon_613638webcan.jpg
leah_dizon_613639webcan.jpgleah_dizon_613581webcan.jpgleah_dizon_613582webcan.jpgleah_dizon_613548webcan.jpgleah_dizon_613549webcan.jpgleah_dizon_613558webcan.jpgleah_dizon_613559webcan.jpgleah_dizon_613560webcan.jpgleah_dizon_613561webcan.jpgleah_dizon_613562webcan.jpgleah_dizon_613578webcan.jpgleah_dizon_613579webcan.jpgleah_dizon_613580webcan.jpgleah_dizon_613531webcan.jpgleah_dizon_613532webcan.jpgleah_dizon_613533webcan.jpgleah_dizon_613545webcan.jpgleah_dizon_613546webcan.jpgleah_dizon_613547webcan.jpgleah_dizon_613522webcan.jpgleah_dizon_613523webcan.jpgleah_dizon_613524webcan.jpgleah_dizon_613525webcan.jpgleah_dizon_613526webcan.jpgleah_dizon_613527webcan.jpgleah_dizon_613528webcan.jpgleah_dizon_613529webcan.jpgleah_dizon_613518webcan.jpgleah_dizon_613519webcan.jpgleah_dizon_613520webcan.jpgleah_dizon_613521webcan.jpgleah_dizon_613517webcan.jpg
Share

用python来缩放图片

Python Imaging Library (PIL) 是一个普遍使用的图片库,你需要下载安装。这里有一段示例代码,最新的代码看这里

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/env python
# $Id: thumbnails_create.py 5 2007-05-10 05:44:05Z zhuzhu $
# first you must install Python Imaging Library (PIL) at
# http://www.pythonware.com/products/pil/
import os, sys
import Image
import glob

size = [580,1024]
files = glob.glob('*.jpg')
# files = ["Leah_Dizon_613516.jpg"]

for infile in files:
    im = Image.open(infile)
    if im.size[0] > size[0]:
        how = (size[0]*100)/im.size[0]
        outfile = os.path.splitext(infile)[0] + ".webcan.jpg"
        if infile != outfile:
            try:
                im = im.resize((size[0], (im.size[1]*how)/100), Image.BILINEAR)
                im.save(outfile, "JPEG")
                print outfile+" is created"
            except IOError:
                print "cannot create thumbnail for", infile
    else:
        print "not need create thumbnail for", infile

我还收集了一个python的小小手册,相当于是FAQ吧。

Share