# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("sf.jpg", "-resize", "50%", "-bordercolor", "#fbfaf7",
"-border", "4x4", "-bordercolor", "#918164", "-border", "1x1",
"-bordercolor", "none", "-border", "20x20", "-background", "none",
"-shear", "0x10", "-repage", "+10-15", "(", "+clone", "-repage",
"+0+0", ")", "(", "+clone", "-repage", "-10+15", ")",
"-background", "#eeeeff", "-flatten", "sample1386a.png")
元画像(sf.jpg)
出力画像(sample1386a.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment