# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("-size", "200x200", "xc:none",
"-fill", "white", "-draw", "roundrectangle 10,10,190,190,10,10",
"-matte", "-channel", "rgba", "sf.jpg",
"-compose", "src_in", "-composite", "-modulate", "160",
"-colorspace", "gray", "(", "-size", "200x200", "xc:none",
"-fill", "white", "-draw", "roundrectangle 10,10,190,190,10,10",
"-shade", "135x23", "-blur", "0x2", "-normalize", "-matte",
"-channel", "rgba", ")", "-swap", "0,1", "-compose", "overlay",
"-composite", "sample1340a.png")
出力画像(sample1340a.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment