小编Azi*_*tov的帖子

如何使用Python将WebP图像转换为Gif?

我已经尝试过这个:

from PIL import Image
im = Image.open('this.webp')
im.save('that.gif', 'gif', save_all=True)
Run Code Online (Sandbox Code Playgroud)

这给了我这个错误

类型错误:& 不支持的操作数类型:“tuple”和“int”

我的网站上有数百张 webp 图像,需要将它们转换为 gif,因为 Firefox 不支持它。谢谢。

python gif python-imaging-library webp

5
推荐指数
1
解决办法
5564
查看次数

标签 统计

gif ×1

python ×1

python-imaging-library ×1

webp ×1