• AbsentBird
    link
    fedilink
    arrow-up
    9
    ·
    edit-2
    9 months ago

    You can convert it to frames with imagemagick, then use ffmpeg to turn that into a gif:

    magick animated.webp frames.png
    ffmpeg -i frames-%d.png animated.gif

    EDIT, or with a single imagemagick command:
    convert -format gif file.webp file.gif

    • shastaxc
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Weird that it can’t get the format from that .gif extension

      • AbsentBird
        link
        fedilink
        arrow-up
        3
        ·
        edit-2
        9 months ago

        Yeah, I was looking into that. They use the webp muxer for generating files, but not for decoding. I’m not sure exactly why. That seems to be the reason ffmpeg can generate animated webp, but not read it.