How to Convert WebP image to Gif with Python?

Viewed 3264

I already tried this:

from PIL import Image
im = Image.open('this.webp')
im.save('that.gif', 'gif', save_all=True)

which is giving me this error

TypeError: unsupported operand type(s) for &: 'tuple' and 'int'

I have hundreds of webp images on my site and need to convert them to gif, because Firefox doesn't support it. Thank you.

1 Answers
Related