I want to use the Python API binding for ImageMagick http://wand-py.org to directly manipulate images. I am however not able to deduce from the documentation how to use a grayscale transformation. Can anybody provide information on this problem?
from wand.image import Image
try:
with Image(file=path) as img:
img.grayscale() # PSEUDOCODE for my given problem
except:
pass