# coding=UTF-8
import PythonMagick
# 画像にぼかしをかける
img = PythonMagick.Image("SF.JPG")
img.blur(0,1)
img.write("img7.jpg")
元画像
出力画像
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhW3cZO3djIPelEwe9OpbATfPQFmPnTH4LNrQDvLG4o64DteQIijiGqHYRNRnpeLcdeQXReyY0JDMKsu_GA6rfRGH3tzy7C2mA84i2WFs_DSRCNxmNKJnOHPXxNY3i6ogFC9A8u/s320/img7.jpg)
※ubuntuでPythonMagickをインストールするには、以下のコマンドを実行します。
sudo apt-get install python-pythonmagick
動作環境
python 2.6.6, python-pythonmagick 0.9.1