# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("-size", "200x200", "xc:none", "-fill", "white",
"-draw", "rectangle 10,10 189,189", "-spread", "5",
"-median", "2", "(", "sf.jpg", "-sepia-tone", "80%", ")",
"-compose", "src_in", "-composite", "xc:white", "+swap",
"-compose", "src-over", "-composite",
"-sketch", "0x10+120",
"sample1406a.png")
元画像(sf.jpg)
出力画像(sample1406a.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment