# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("-size", "200x200", "xc:none", "-fill", "white",
"-draw", "roundrectangle 20,20,180,180,10,10",
"-alpha", "activate", "-channel", "rgba", "-fx",
"(j%4<3&&r!=0)?p*0.7:p*0.3", "-spread", "5", "-motion-blur",
"0x10+0", "-motion-blur", "0x10+180", "-alpha", "activate",
"-channel", "rgba", "sf.jpg", "-compose", "src_in",
"-composite", "sample1408a.png")
元画像(sf.jpg)
出力画像(sample1408a.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment