### ImageMagick version

7.1.1-4

### Operating system

Windows

### Operating system, version and so on

Win10 22H2 19045.3208

### Description

When converting from apng to webp, passing `-define webp:lossless=true` appears to be ignored.

Example (webp, apng):

![webp_apng](https://github.com/ImageMagick/ImageMagick/assets/61125188/0c24f8aa-4b93-4c1b-94fd-3e8ff5d617c9)

Non-animated png to webp works losslessly without issue. This only applies to animations.

### Steps to Reproduce

Full command I used:

```
convert apng:input_file.png -define webp:lossless=true -coalesce output_file.webp
```

### Images

Input apng and output webp from my conversion: [input_output_files.zip](https://github.com/ImageMagick/ImageMagick/files/12209990/input_output_files.zip)
Lossless APNG to WebP is not lossless
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Lossless APNG to WebP is not lossless
Issue date:

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

7.1.1-4

### Operating system

Windows

### Operating system, version and so on

Win10 22H2 19045.3208

### Description

When converting from apng to webp, passing `-define webp:lossless=true` appears to be ignored.

Example (webp, apng):

![webp_apng](https://github.com/ImageMagick/ImageMagick/assets/61125188/0c24f8aa-4b93-4c1b-94fd-3e8ff5d617c9)

Non-animated png to webp works losslessly without issue. This only applies to animations.

### Steps to Reproduce

Full command I used:

```
convert apng:input_file.png -define webp:lossless=true -coalesce output_file.webp
```

### Images

Input apng and output webp from my conversion: [input_output_files.zip](https://github.com/ImageMagick/ImageMagick/files/12209990/input_output_files.zip)
--- end body ---
