【发布时间】:2013-04-15 06:53:19
【问题描述】:
我想使用 ImageMagick http://wand-py.org 的 Python API 绑定来直接操作图像。但是,我无法从文档中推断出如何使用灰度转换。任何人都可以提供有关此问题的信息吗?
from wand.image import Image
try:
with Image(file=path) as img:
img.grayscale() # PSEUDOCODE for my given problem
except:
pass
【问题讨论】:
标签: python imagemagick grayscale magickwand wand