2008年06月06日Python Python Imaging Library (PIL)を使ってWeb上の画像を読み込み サムネール画像を作成するスクリプト Pythonで画像を扱えるライブラリに、Python Imaging Library (PIL)があります。 Python Imaging Library (PIL) http://www.pythonware.com/products/pil/ このライブラリを使用して、ウェブ上に公開されている画像を取得して、サムネール画像を作成するスクリプトです。 #!/usr/bin/env python # -*- coding: utf-8 -*- import Image import urllib from cStringIO import StringIO buffer = urllib