# coding=UTF-8
import PythonMagick
# 画像を拡散させる
img = PythonMagick.Image("SF.JPG")
img.spread(5)
img.write("img17.jpg")
元画像
出力画像

※ubuntuでPythonMagickをインストールするには、以下のコマンドを実行します。
sudo apt-get install python-pythonmagick
動作環境
python 2.6.6, python-pythonmagick 0.9.1
No comments:
Post a Comment