### ImageMagick version

7.1.1-12

### Operating system

Linux

### Operating system, version and so on

NixOS Unstable, Alpine 3.17, 3.18

### Description

I maintain an application that depends on imagemagick, and someone submitted a bug to me today around animated webp handling. My application calls out to imagemagick to strip metadata and auto-orient images, but manual testing reveals no arguments need to be passed at all to encounter this problem

Error output:
```
magick: ERROR adding frame: Invalid frame dimensions. `output.webp' @ error/webp.c/WriteAnimatedWEBPImage/966.
```

Doing some digging, I found this command works on Apine 3.15 and 3.16, but not 3.17 or 3.18
The offending imagemagick versions are:
7.1.0-50 working on 3.16
7.1.0-62 failing on 3.17

Additional info: Alpine 3.16 shipped libwebp 1.2.3, and Alpine 3.17 shipped libwebp 1.2.4

My host operating system is NixOS, and running imagemagick 7.1.1-12 with libwebp 1.3.0 still has this problem.


### Steps to Reproduce

```bash
$ magick input.webp output.webp
```

### Images

[peepoWine.webp.zip](https://github.com/ImageMagick/ImageMagick/files/12022174/peepoWine.webp.zip)

I've included the image in a zip file so it doesn't get compressed by github. I'm sorry the contents is a pepe, that is what was given to me.
Cannot convert animated webp to animated webp
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Cannot convert animated webp to animated webp
Issue date:

--- start body ---
### ImageMagick version

7.1.1-12

### Operating system

Linux

### Operating system, version and so on

NixOS Unstable, Alpine 3.17, 3.18

### Description

I maintain an application that depends on imagemagick, and someone submitted a bug to me today around animated webp handling. My application calls out to imagemagick to strip metadata and auto-orient images, but manual testing reveals no arguments need to be passed at all to encounter this problem

Error output:
```
magick: ERROR adding frame: Invalid frame dimensions. `output.webp' @ error/webp.c/WriteAnimatedWEBPImage/966.
```

Doing some digging, I found this command works on Apine 3.15 and 3.16, but not 3.17 or 3.18
The offending imagemagick versions are:
7.1.0-50 working on 3.16
7.1.0-62 failing on 3.17

Additional info: Alpine 3.16 shipped libwebp 1.2.3, and Alpine 3.17 shipped libwebp 1.2.4

My host operating system is NixOS, and running imagemagick 7.1.1-12 with libwebp 1.3.0 still has this problem.


### Steps to Reproduce

```bash
$ magick input.webp output.webp
```

### Images

[peepoWine.webp.zip](https://github.com/ImageMagick/ImageMagick/files/12022174/peepoWine.webp.zip)

I've included the image in a zip file so it doesn't get compressed by github. I'm sorry the contents is a pepe, that is what was given to me.
--- end body ---
