# coding=UTF-8
import win32com.client
im = win32com.client.Dispatch("ImageMagickObject.MagickImage.1")
im.convert("-font", "c:/windows/fonts/msmincho.ttc",
"-pointsize", "20", "-fill", "#303030", "-caption",
"San Francisco\nサンフランシスコ", "sf.jpg", "-background",
"#909090", "-polaroid", "30", "-background", "#ffffff",
"-flatten", "sample1404a.png")
元画像(sf.jpg)
出力画像(sample1404a.png)
動作環境
Python3.1.1, Python for Windows Extensions (Build 214), ImageMagick6.5.5
No comments:
Post a Comment