如何使用 wand python 删除图像元数据

How to remove image metadata using wand python

我使用 wand-py 但无法写入 Image.metadata ,我该怎么办?

使用Image.strip()方法:

with Image(filename='i0.jpg') as img:
    img.strip()
    img.save(filename='i1.jpg')

参见 more detail in the doc