# Webp: invalid formation, with an animated

**URL:** <https://discourse.gohugo.io/t/webp-invalid-formation-with-an-animated/47212>\
**Category:** support\
**Created:** [November 23, 2023, 10:32am UTC](https://discourse.gohugo.io/t/webp-invalid-formation-with-an-animated/47212 "2023-11-23T10:32:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tom\_Durand](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/tom_durand/32/14460_2.png) [@Tom\_Durand](https://discourse.gohugo.io/u/Tom_Durand)\
**Post date:** [November 23, 2023, 10:32am UTC](https://discourse.gohugo.io/t/webp-invalid-formation-with-an-animated/47212/1 "2023-11-23T10:32:27Z")

</div>

Hi,  
I have a similar problem that I used to have with a [gimp-created webp image](https://discourse.gohugo.io/t/resizing-a-particular-image-with-webp-extension-throws-invalid-format-error/44540) but the problem is worse this time. It is animated, ergo cwebp can’t process it. Has someone another solution ?  
You can find the image on [this page](https://dazzling-faloodeh-93ee2d.netlify.app/), or [this link](https://dazzling-faloodeh-93ee2d.netlify.app/Images/memes/gif/animation.webp).  
Originally it was a gif but I tried to make it a webp to get rid of the bad formatting which forbad resizing. Ain’t much of a success !

---

<div class="post-metadata">

**Author:** ![bep](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/bep/32/3332_2.png) [@bep](https://discourse.gohugo.io/u/bep)\
**Post date:** [November 23, 2023, 10:37am UTC](https://discourse.gohugo.io/t/webp-invalid-formation-with-an-animated/47212/2 "2023-11-23T10:37:24Z")

</div>

Go’s Webp decoder does not support animated Webp. I saw some progress on this issue on the Go issue tracker (there was a pull request), but I would not be too optimistic about when it will happen.

(there would still be some work on the encoder side of it if you want animated images out in the other end and not just the first frame, but that is at least something we (I) can somehow handle in house).

As an added note: It’s unfortunate that they throw an error in this case, it would be much better if they could just decode the first frame (which would be much better than nothing, and in line with how they do GIF).
