使用PIL从映像中删除元数据

2024-09-22 16:42:39 发布

您现在位置:Python中文网/ 问答频道 /正文

这是我的代码,但显示此错误

Img = Image.open('img.png')

with img as img:
    img.strip()

img.save('img2.jpg')

AttributeError:'PngImageFile'对象没有属性'strip'

请帮忙 先谢谢你


Tags: 代码imageimgpngsaveas错误with