this post was submitted on 19 Dec 2023
419 points (100.0% liked)

Memes @ Reddthat

1001 readers
6 users here now

The Memes community. Where Memes matter the most.

We abide by Reddthat's Instance Rules & the Lemmy Code of Conduct. By interacting here you agree to these terms.

Rules

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] absentbird@lemm.ee 9 points 10 months ago* (last edited 10 months ago) (1 children)

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

[–] shasta@lemm.ee 2 points 10 months ago (1 children)

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

[–] absentbird@lemm.ee 3 points 10 months ago* (last edited 10 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.