[Python] How to Convert WebP image to Gif with Python?

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    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.

    Continue reading...

Compartilhe esta Página