# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("sf.jpg", "-enhance", "-enhance", "-charcoal", "1",
"-contrast", "-alpha", "activate", "-channel", "a", "-fx", "r",
"-channel", "rgba", "(", "-size", "200x200",
"gradient:#F8C749-#BBDDFF", ")", "+swap", "-composite",
"sample1373a.png")
元画像(sf.jpg)
出力画像(sample1373a)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment